From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.8]) (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 405F71422B8 for ; Sun, 10 Nov 2024 04:19:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.8 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731212378; cv=none; b=kBoY2WjofZgJaho0CxRZSVqju4mk9bZZm8pGV5iJGd/3Udv/q163fikikPdWZ3q4aW3D++C7S8vjLp1LSbCfR74hZOneWMU0dg9pkdd+Rba/FPUDH/L2Fec3rJjItuDXvoR0BF1oP9oClVEXbGb4ROL7IIGjPfVkq2Hr6RFceac= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731212378; c=relaxed/simple; bh=+AIwq+p26TZqqlYuKiL1+LRdiG7VvcnINzDpHqNv5mo=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=epzqiJmChuKVxpk27hO0nQ+P0OmKcPHFdqA/t0LNGwttSOtUVJxehbXnqSx5F/OgBLlC5pu5OChJhtOFSZN4JLrdzVuiKsHWoTjWylknW3AF47uQGQ6YDKT462ZjFI0GfYVdanRnX1PAah1wGfDOBuHUXisM/7TEQ1yWHHJqzjw= 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=MB150CgM; arc=none smtp.client-ip=192.198.163.8 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="MB150CgM" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1731212377; x=1762748377; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=+AIwq+p26TZqqlYuKiL1+LRdiG7VvcnINzDpHqNv5mo=; b=MB150CgMB+fp8J/mNMuBhatNZ1UfNg3bdMjgTheZI79wRteRY/lYw3cG hg7uo1DT2qlk+KEow8b9wpM2Iy7DjDohCWGzs55/kQNLCnlj7DG7eTHFh TnksEBVY1V7IRd0dFoVEJqDkt1fUv9z4PIfsyFpwjkHBuvm0/uMlB3SXP nqCLTZoB041cRi6S7NxMq82jpcSPlCG29Ir5y5hl2SqTkjKtlvLowwQxW FbnauODG5+rCoqRYNq8ZLLsjzO15VjGDM0Vmx/PDABGRwlrAaGx6e83+E 9IGP8Z8MTgBFAtp6BzMKio/mCCjCGocxt19MtAJeEHHMuSYvRFDbK2tLw A==; X-CSE-ConnectionGUID: JXXK8CXnQOe21Ol+gl1qNw== X-CSE-MsgGUID: XEmrFl0nTqK6VcUHrtM7IQ== X-IronPort-AV: E=McAfee;i="6700,10204,11251"; a="48568170" X-IronPort-AV: E=Sophos;i="6.12,142,1728975600"; d="scan'208";a="48568170" Received: from orviesa008.jf.intel.com ([10.64.159.148]) by fmvoesa102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Nov 2024 20:19:37 -0800 X-CSE-ConnectionGUID: CVtKf7tTQCeBm453L0bKmg== X-CSE-MsgGUID: T0GbcRBIS9mu0dJhc/W/bA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.12,142,1728975600"; d="scan'208";a="87095702" Received: from allen-sbox.sh.intel.com (HELO [10.239.159.30]) ([10.239.159.30]) by orviesa008-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Nov 2024 20:19:34 -0800 Message-ID: <933e4c41-38b4-49dd-a6da-f699cfc7c344@linux.intel.com> Date: Sun, 10 Nov 2024 12:18:38 +0800 Precedence: bulk X-Mailing-List: iommu@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v4 5/7] iommu/vt-d: Make the blocked domain support PASID To: Yi Liu , joro@8bytes.org, jgg@nvidia.com, kevin.tian@intel.com Cc: alex.williamson@redhat.com, eric.auger@redhat.com, nicolinc@nvidia.com, kvm@vger.kernel.org, chao.p.peng@linux.intel.com, iommu@lists.linux.dev, zhenzhong.duan@intel.com, vasant.hegde@amd.com, willy@infradead.org References: <20241108120427.13562-1-yi.l.liu@intel.com> <20241108120427.13562-6-yi.l.liu@intel.com> Content-Language: en-US From: Baolu Lu In-Reply-To: <20241108120427.13562-6-yi.l.liu@intel.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit On 11/8/24 20:04, Yi Liu wrote: > The blocked domain can be extended to park PASID of a device to be the > DMA blocking state. By this the remove_dev_pasid() op is dropped. > > Reviewed-by: Kevin Tian > Reviewed-by: Jason Gunthorpe > Signed-off-by: Yi Liu > --- > drivers/iommu/intel/iommu.c | 15 +++++++++++---- > 1 file changed, 11 insertions(+), 4 deletions(-) Reviewed-by: Lu Baolu