iommu/vt-d: Make prq draining code generic
authorLu Baolu <baolu.lu@linux.intel.com>
Wed, 9 Aug 2023 12:47:58 +0000 (20:47 +0800)
committerJoerg Roedel <jroedel@suse.de>
Wed, 9 Aug 2023 15:44:37 +0000 (17:44 +0200)
commit154786235d0156ddce9575f13e23f3169e688435
treeb897ce29b0b28f73590e25d46d3e9fa82bb0ef42
parentb61701881f2ff809e9cd229f129bdc4e09ca688e
iommu/vt-d: Make prq draining code generic

Currently draining page requests and responses for a pasid is part of SVA
implementation. This is because the driver only supports attaching an SVA
domain to a device pasid. As we are about to support attaching other types
of domains to a device pasid, the prq draining code becomes generic.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20230802212427.1497170-6-jacob.jun.pan@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/iommu.c
drivers/iommu/intel/iommu.h
drivers/iommu/intel/svm.c