diff options
author | Jan Beulich <jbeulich@suse.com> | 2021-08-25 14:15:32 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2021-08-25 14:15:32 +0200 |
commit | d1bb6c97c31ef754fb29b29eb307c090414e8022 (patch) | |
tree | b8cd82b743461091cc96337f69acd24ae7663fb8 /xen/include/asm-x86 | |
parent | 34750a3eb022462cdd1c36e8ef9049d3d73c824c (diff) |
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 <jbeulich@suse.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Diffstat (limited to 'xen/include/asm-x86')
-rw-r--r-- | xen/include/asm-x86/p2m.h | 3 |
1 files changed, 2 insertions, 1 deletions
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; |