From d1bb6c97c31ef754fb29b29eb307c090414e8022 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Wed, 25 Aug 2021 14:15:32 +0200 Subject: IOMMU: also pass p2m_access_t to p2m_get_iommu_flags() A subsequent change will want to customize the IOMMU permissions based on this. This is part of XSA-378. Signed-off-by: Jan Beulich Reviewed-by: Paul Durrant --- xen/include/asm-x86/p2m.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'xen/include/asm-x86') diff --git a/xen/include/asm-x86/p2m.h b/xen/include/asm-x86/p2m.h index d2e7a8db85..f2ad420e3b 100644 --- a/xen/include/asm-x86/p2m.h +++ b/xen/include/asm-x86/p2m.h @@ -891,7 +891,8 @@ static inline void p2m_altp2m_check(struct vcpu *v, uint16_t idx) {} /* * p2m type to IOMMU flags */ -static inline unsigned int p2m_get_iommu_flags(p2m_type_t p2mt, mfn_t mfn) +static inline unsigned int p2m_get_iommu_flags(p2m_type_t p2mt, + p2m_access_t p2ma, mfn_t mfn) { unsigned int flags; -- cgit v1.2.3