Message ID | 20240229094804.121610-1-baolu.lu@linux.intel.com |
---|---|
Headers |
Return-Path: <linux-kernel+bounces-86482-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2097:b0:108:e6aa:91d0 with SMTP id gs23csp351931dyb; Thu, 29 Feb 2024 04:20:43 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXrWC/X/IDljVf+JMWERA1Qjx06PXR0eoZvKG1vkYZfN9xdBK2MJLNYCoQxkjDesioIVxGrNqxxf5RUEs2jwYzXDIS7OQ== X-Google-Smtp-Source: AGHT+IEBM8P++Y1PUjwfKdixR5TRd+7pbI/dBC5kwp2FNftJwTIprFHHRpWqPNZtU/gWYrrTCeez X-Received: by 2002:ac8:4e42:0:b0:42e:c2fb:403b with SMTP id e2-20020ac84e42000000b0042ec2fb403bmr327738qtw.50.1709209243546; Thu, 29 Feb 2024 04:20:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709209243; cv=pass; d=google.com; s=arc-20160816; b=ZuTjz87XgMxgtaer+8GuMn/QRJ9REVoXKJS1C66PEQRjFwxpp5Q4qopB8uL3hDEvY+ B60c82X7ditD0wdJYI3HUs/tLUi5ZL7HKPz9f+oVIvTrStlQFIxKa3BucqktLUsu8R4y Upvyo+tdXTVYnIwprFqCMt1H4nyui+2nu2oJR+yZWsQd0R9mr4qC9GcHzTgh69R1cj4t V9SqbjEMJW0e44415S54BUUcg8GVB6cSAwwIW/uVFpR6N6M8RlUV88HvT1flGAccQzT8 iWYicBwhzz8ncJQu0bXd7FbtHcFSRV7bAEyBEClCDXKpPA9xVhC2Pc+pXtNrPnCHODrV qaDw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=z3slp0UIhlyynIshUhLWFqOAHqobYtcjzxYndQj5fZ0=; fh=q/aNRRwbk+AHb42I2d6wYfBCRE+T0txaX+dEwQcyGW0=; b=hFVAHQorgwJotRdsIwnnxA9iZqgBmnnGgPBZkEGGPXKDP6+6F/5Si8hGEiF20eivXU JXhdQlNXGXkpVTBG9WKhDuso958dYsa2L6K+QAnO6SA9IzB9ayyZgIo0MZfOM4FfUE9J zuIjgH7WleuCiRTPOD2cfogDDB/Yff2CSr2/n3JUfuX9ARRH7Dt1kMUZs0wwEluirpu5 GnmiZjmzr6rk8RBWTetzMB46LtQdhFiKUTR+7jIosEKVPj72ae4jIvbAutw21+DzIyGH d8Yhr+tsam2ZW+4qdiRbNb1/twrTomkmA7Px70q/j0dIAT3iy48SjZB7m4E+wIref7jN MOvQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=E2AqZ5L1; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-86482-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86482-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id h19-20020a05622a171300b0042ebd88aa99si683647qtk.77.2024.02.29.04.20.43 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Feb 2024 04:20:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-86482-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=E2AqZ5L1; arc=pass (i=1 dkim=pass dkdomain=intel.com dmarc=pass fromdomain=linux.intel.com); spf=pass (google.com: domain of linux-kernel+bounces-86482-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-86482-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 01CDC1C23E72 for <ouuuleilei@gmail.com>; Thu, 29 Feb 2024 09:54:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E92C36281D; Thu, 29 Feb 2024 09:54:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="E2AqZ5L1" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 137C662154 for <linux-kernel@vger.kernel.org>; Thu, 29 Feb 2024 09:54:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.14 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709200451; cv=none; b=WPuh253q/WGid+j/a0AEfT/8M73Ue9ZAP2reu7bdzran677/SSuttm40U0gTskZeuXm6a1JdvHOKewgrYefW/5uV/a32Ua0+IHeR5UbubA5lcA2bytCn441XFJiA0FFkkz9JGGbOcy6Uaj37Xykty3LDvnvoDojbBqvcAVtP/Ew= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709200451; c=relaxed/simple; bh=2wXxdGYUOltk7Lzm5DmMsD3Q83xGW/4pr62gkHYUHlA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=sQ1jLKTE2AJSYdXFmFg2tPT+3MUTaUNxdCEeWN4E504bJRChd9B7k9n73afhbPx5qctwgV1+gxkAGbwk7njm+7WEP3oFNetZWbRs8OO4N8dWjjSLSOwaKFOTlEDnmTQM2y5gCKgqwDDGgZD0SsY326Bxcz4aZ6K4kkRbsWvgyLY= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com; spf=none smtp.mailfrom=linux.intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=E2AqZ5L1; arc=none smtp.client-ip=198.175.65.14 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.intel.com Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=linux.intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1709200450; x=1740736450; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=2wXxdGYUOltk7Lzm5DmMsD3Q83xGW/4pr62gkHYUHlA=; b=E2AqZ5L13IQyJ1zgjzDn27I/QSs8Z2XMiXvDNxV9rUnb3nToJak+ev06 SMxI+oDUGxnzZC9k7kArs6JItQGmvVfEkjYSpjQfO6lsgWNKY4jS0njp8 wiuRCqlLq7kQMsLQfe9TCKqNpRTdCcOMLhqyykX9YtvoZrrwvq/ckwGl6 y/41lCqQrKgCT/hmGp/FyiSLgowHRiiGSdxVVS1E66ElWc/ldr+Lo79iJ IoptBtp5USL9ROEMWpo4YXk7VJ3AINHYkO6fGtDiR8t/wLr2c09NwVtJW /t/Z4cGcpkgrTrvAmwXqJRbllgUZt6Y7B5PB6yE5ZaE87cBD4QO2nLUKw g==; X-IronPort-AV: E=McAfee;i="6600,9927,10998"; a="7480761" X-IronPort-AV: E=Sophos;i="6.06,194,1705392000"; d="scan'208";a="7480761" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Feb 2024 01:54:09 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.06,194,1705392000"; d="scan'208";a="7695758" Received: from allen-box.sh.intel.com ([10.239.159.127]) by orviesa010.jf.intel.com with ESMTP; 29 Feb 2024 01:54:07 -0800 From: Lu Baolu <baolu.lu@linux.intel.com> To: Joerg Roedel <joro@8bytes.org>, Will Deacon <will@kernel.org>, Robin Murphy <robin.murphy@arm.com>, Jason Gunthorpe <jgg@ziepe.ca>, Kevin Tian <kevin.tian@intel.com>, Eric Badger <ebadger@purestorage.com> Cc: iommu@lists.linux.dev, linux-kernel@vger.kernel.org, Lu Baolu <baolu.lu@linux.intel.com> Subject: [PATCH 0/3] iommu: Fix domain check on release (part 2/2) Date: Thu, 29 Feb 2024 17:48:01 +0800 Message-Id: <20240229094804.121610-1-baolu.lu@linux.intel.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1792235791654347074 X-GMAIL-MSGID: 1792235791654347074 |
Series |
iommu: Fix domain check on release (part 2/2)
|
|
Message
Baolu Lu
Feb. 29, 2024, 9:48 a.m. UTC
This is a follow-up to the discussion thread here: https://lore.kernel.org/linux-iommu/20240221154012.GC13491@ziepe.ca/ This change includes cleanups and refactoring in the Intel iommu driver related to the use of the iommu_ops->release_domain. There are two parts of this topic: [ ] Introduce release_domain and fix a kernel NULL pointer dereference issue in the intel iommu driver. [x] A follow-up series to cleanup intel iommu driver. Best regards, baolu Lu Baolu (3): iommu/vt-d: Setup scalable mode context entry in probe path iommu/vt-d: Remove scalable mode context entry setup from attach_dev iommu/vt-d: Remove scalabe mode in domain_context_clear_one() drivers/iommu/intel/pasid.h | 1 + drivers/iommu/intel/iommu.c | 183 +++++++++++------------------------- drivers/iommu/intel/pasid.c | 116 +++++++++++++++++++++++ 3 files changed, 174 insertions(+), 126 deletions(-)