projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
99a9c70
)
x86/mem_access: put p2m_{get/set}_suppress_ve under CONFIG_HVM
author
Wei Liu
<wei.liu2@citrix.com>
Fri, 21 Sep 2018 15:54:48 +0000
(16:54 +0100)
committer
Wei Liu
<wei.liu2@citrix.com>
Sat, 22 Sep 2018 09:17:17 +0000
(10:17 +0100)
They are used by HVM code only.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Acked-by: Razvan Cojocaru <rcojocaru@bitdefender.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 2217bda4c5c68c481f11d993cc4053e1b16dac00..826c35fc5c41e11161f642f55ca58a0a7270ee74 100644
(file)
--- a/
xen/arch/x86/mm/mem_access.c
+++ b/
xen/arch/x86/mm/mem_access.c
@@
-501,6
+501,7
@@
void arch_p2m_set_access_required(struct domain *d, bool access_required)
}
}
+#ifdef CONFIG_HVM
/*
* Set/clear the #VE suppress bit for a page. Only available on VMX.
*/
@@
-600,6
+601,7
@@
int p2m_get_suppress_ve(struct domain *d, gfn_t gfn, bool *suppress_ve,
return 0;
}
+#endif
/*
* Local variables: