On 17.09.20 06:05, Alice Guo wrote:
Add JAILHOUSE_IOMMU_ARM_MMU500 to the Jailhouse iommu type. Add
arm_sid_mask to struct jailhouse_iommu, and it is a mask of StreamID
bits irrelevant to the matching process.
Signed-off-by: Alice Guo <[email protected]>
---
include/jailhouse/cell-config.h | 3 +++
1 file changed, 3 insertions(+)
diff --git a/include/jailhouse/cell-config.h b/include/jailhouse/cell-config.h
index 2a968dd5..592341df 100644
--- a/include/jailhouse/cell-config.h
+++ b/include/jailhouse/cell-config.h
@@ -260,6 +260,7 @@ struct jailhouse_pci_capability {
#define JAILHOUSE_IOMMU_INTEL 2
#define JAILHOUSE_IOMMU_SMMUV3 3
#define JAILHOUSE_IOMMU_PVU 4
+#define JAILHOUSE_IOMMU_ARM_MMU500 5
struct jailhouse_iommu {
__u32 type;
@@ -279,6 +280,8 @@ struct jailhouse_iommu {
__u32 tlb_size;
} __attribute__((packed)) tipvu;
};
+
+ __u32 arm_sid_mask;
This should go into the union as
struct {
__u32 sid_mask;
} __attribute__((packed) mmu500; (or arm_mmu400)
That's because no other IOMMU will have a use for this parameter. The
packed is unneeded at this stage, just for consistency.
} __attribute__((packed));
struct jailhouse_pio {
Jan
--
Siemens AG, Corporate Technology, CT RDA IOT SES-DE
Corporate Competence Center Embedded Linux
--
You received this message because you are subscribed to the Google Groups
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/jailhouse-dev/54b1a19d-871c-b79e-899c-bac4118ab7df%40siemens.com.