projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a7947b
)
x86/altp2m: treat view 0 as the hostp2m in p2m_get_mem_access()
author
Razvan Cojocaru
<rcojocaru@bitdefender.com>
Wed, 3 Apr 2019 08:56:37 +0000
(11:56 +0300)
committer
Wei Liu
<wei.liu2@citrix.com>
Wed, 3 Apr 2019 14:14:30 +0000
(15:14 +0100)
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 <rcojocaru@bitdefender.com>
Acked-by: Tamas K Lengyel <tamas@tklengyel.com>
xen/arch/x86/mm/mem_access.c
patch
|
blob
|
history
diff --git
a/xen/arch/x86/mm/mem_access.c
b/xen/arch/x86/mm/mem_access.c
index 56c06a4fc6a66cce83c749eeb2ec90f766dccbbe..a144bb0ce494318b0493dcff31bb5e4e8a742969 100644
(file)
--- a/
xen/arch/x86/mm/mem_access.c
+++ b/
xen/arch/x86/mm/mem_access.c
@@
-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) )