[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 09/19] pci: Add IOMMU operations to get memory regions with PA
From: |
CLEMENT MATHIEU--DRIF |
Subject: |
[PATCH v2 09/19] pci: Add IOMMU operations to get memory regions with PASID |
Date: |
Mon, 20 Jan 2025 17:41:47 +0000 |
From: Clement Mathieu--Drif <clement.mathieu--drif@eviden.com>
The region returned by this operation will be used as the input region
for ATS.
Signed-off-by: Clement Mathieu--Drif <clement.mathieu--drif@eviden.com>
---
include/hw/pci/pci.h | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h
index 4002bbeebd..644551550b 100644
--- a/include/hw/pci/pci.h
+++ b/include/hw/pci/pci.h
@@ -391,6 +391,22 @@ typedef struct PCIIOMMUOps {
* @devfn: device and function number
*/
AddressSpace * (*get_address_space)(PCIBus *bus, void *opaque, int devfn);
+ /**
+ * @get_memory_region_pasid: get the iommu memory region for a given
+ * device and pasid
+ *
+ * @bus: the #PCIBus being accessed.
+ *
+ * @opaque: the data passed to pci_setup_iommu().
+ *
+ * @devfn: device and function number
+ *
+ * @pasid: the pasid associated with the requested memory region
+ */
+ IOMMUMemoryRegion * (*get_memory_region_pasid)(PCIBus *bus,
+ void *opaque,
+ int devfn,
+ uint32_t pasid);
/**
* @set_iommu_device: attach a HostIOMMUDevice to a vIOMMU
*
--
2.47.1
- [PATCH v2 02/19] intel_iommu: Declare supported PASID size, (continued)
- [PATCH v2 02/19] intel_iommu: Declare supported PASID size, CLEMENT MATHIEU--DRIF, 2025/01/20
- [PATCH v2 04/19] intel_iommu: Fill the PASID field when creating an IOMMUTLBEntry, CLEMENT MATHIEU--DRIF, 2025/01/20
- [PATCH v2 12/19] pci: Add a pci-level initialization function for iommu notifiers, CLEMENT MATHIEU--DRIF, 2025/01/20
- [PATCH v2 07/19] pcie: Helper function to check if ATS is enabled, CLEMENT MATHIEU--DRIF, 2025/01/20
- [PATCH v2 15/19] memory: Add an API for ATS support, CLEMENT MATHIEU--DRIF, 2025/01/20
- [PATCH v2 06/19] pcie: Helper functions to check if PASID is enabled, CLEMENT MATHIEU--DRIF, 2025/01/20
- [PATCH v2 05/19] pcie: Add helper to declare PASID capability for a pcie device, CLEMENT MATHIEU--DRIF, 2025/01/20
- [PATCH v2 03/19] memory: Allow to store the PASID in IOMMUTLBEntry, CLEMENT MATHIEU--DRIF, 2025/01/20
- [PATCH v2 08/19] pci: Cache the bus mastering status in the device, CLEMENT MATHIEU--DRIF, 2025/01/20
- [PATCH v2 10/19] intel_iommu: Implement the get_memory_region_pasid iommu operation, CLEMENT MATHIEU--DRIF, 2025/01/20
- [PATCH v2 09/19] pci: Add IOMMU operations to get memory regions with PASID,
CLEMENT MATHIEU--DRIF <=
- [PATCH v2 11/19] memory: Store user data pointer in the IOMMU notifiers, CLEMENT MATHIEU--DRIF, 2025/01/20
- [PATCH v2 13/19] atc: Generic ATC that can be used by PCIe devices that support SVM, CLEMENT MATHIEU--DRIF, 2025/01/20
- [PATCH v2 14/19] atc: Add unit tests, CLEMENT MATHIEU--DRIF, 2025/01/20
- [PATCH v2 16/19] pci: Add a pci-level API for ATS, CLEMENT MATHIEU--DRIF, 2025/01/20
- [PATCH v2 19/19] intel_iommu: Add support for ATS, CLEMENT MATHIEU--DRIF, 2025/01/20
- [PATCH v2 18/19] intel_iommu: Return page walk level even when the translation fails, CLEMENT MATHIEU--DRIF, 2025/01/20
- [PATCH v2 17/19] intel_iommu: Set address mask when a translation fails and adjust W permission, CLEMENT MATHIEU--DRIF, 2025/01/20