x86/altp2m: treat view 0 as the hostp2m in p2m_get_mem_access()
PATCH 1/1 x86/altp2m: treat view 0 as the hostp2m in p2m_get_mem_access()
p2m_set_mem_access() (and other places) treat view 0 as the hostp2m, but p2m_get_mem_access() does not. Correct that inconsistency.
Signed-off-by Razvan Cojocaru <[email protected]>
--- xen/arch/x86/mm/mem_access.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
xen/arch/x86/mm/mem_access.c +1 -1
@@ -505,7 +505,7 @@ int p2m_get_mem_access(struct domain *d, gfn_t gfn, xenmem_access_t *access,if ( altp2m_idx )return -EINVAL ; } -else +else if ( altp2m_idx )/* altp2m view 0 is treated as the hostp2m */ {if ( altp2m_idx >=MAX_ALTP2M || d->arch.altp2m_eptp[altp2m_idx] ==mfn_x (INVALID_MFN ) )
Signature · 7 lines
2.7.4 _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
Quoted 6 lines · Razvan Cojocaru
p2m_set_mem_access()(and other places) treat view 0 as the hostp2m, butp2m_get_mem_access()does not. Correct that inconsistency.Signed-off-by Razvan Cojocaru <[email protected]>
Acked-by Tamas K Lengyel <[email protected]>
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel