[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 02/19] intel_iommu: Declare supported PASID size
From: |
CLEMENT MATHIEU--DRIF |
Subject: |
[PATCH v2 02/19] intel_iommu: Declare supported PASID size |
Date: |
Mon, 20 Jan 2025 17:41:40 +0000 |
From: Clement Mathieu--Drif <clement.mathieu--drif@eviden.com>
PSS field of the ecap register stores the supported PASID size minus 1.
Thus, this commit adds support for 20bits PASIDs.
Signed-off-by: Clement Mathieu--Drif <clement.mathieu--drif@eviden.com>
---
hw/i386/intel_iommu.c | 2 +-
hw/i386/intel_iommu_internal.h | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c
index f366c223d0..1d5ff8f4f6 100644
--- a/hw/i386/intel_iommu.c
+++ b/hw/i386/intel_iommu.c
@@ -4574,7 +4574,7 @@ static void vtd_cap_init(IntelIOMMUState *s)
}
if (s->pasid) {
- s->ecap |= VTD_ECAP_PASID;
+ s->ecap |= VTD_ECAP_PASID | VTD_ECAP_PSS;
}
}
diff --git a/hw/i386/intel_iommu_internal.h b/hw/i386/intel_iommu_internal.h
index e8b211e8b0..238f1f443f 100644
--- a/hw/i386/intel_iommu_internal.h
+++ b/hw/i386/intel_iommu_internal.h
@@ -192,6 +192,7 @@
#define VTD_ECAP_SC (1ULL << 7)
#define VTD_ECAP_MHMV (15ULL << 20)
#define VTD_ECAP_SRS (1ULL << 31)
+#define VTD_ECAP_PSS (19ULL << 35)
#define VTD_ECAP_PASID (1ULL << 40)
#define VTD_ECAP_SMTS (1ULL << 43)
#define VTD_ECAP_SLTS (1ULL << 46)
--
2.47.1
- [PATCH v2 00/19] intel_iommu: Add ATS support, CLEMENT MATHIEU--DRIF, 2025/01/20
- [PATCH v2 01/19] memory: Add permissions in IOMMUAccessFlags, CLEMENT MATHIEU--DRIF, 2025/01/20
- [PATCH v2 02/19] intel_iommu: Declare supported PASID size,
CLEMENT MATHIEU--DRIF <=
- [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, 2025/01/20