Nested HVM is not enabled when !CONFIG_HVM.

Signed-off-by: Wei Liu <wei.l...@citrix.com>
---
 xen/arch/x86/mm/paging.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/xen/arch/x86/mm/paging.c b/xen/arch/x86/mm/paging.c
index dcee496..2aec1d4 100644
--- a/xen/arch/x86/mm/paging.c
+++ b/xen/arch/x86/mm/paging.c
@@ -921,6 +921,7 @@ const struct paging_mode *paging_get_mode(struct vcpu *v)
 
 void paging_update_nestedmode(struct vcpu *v)
 {
+#if CONFIG_HVM
     ASSERT(nestedhvm_enabled(v->domain));
     if (nestedhvm_paging_mode_hap(v))
         /* nested-on-nested */
@@ -929,6 +930,7 @@ void paging_update_nestedmode(struct vcpu *v)
         /* TODO: shadow-on-shadow */
         v->arch.paging.nestedmode = NULL;
     hvm_asid_flush_vcpu(v);
+#endif
 }
 
 void paging_write_p2m_entry(struct p2m_domain *p2m, unsigned long gfn,
-- 
git-series 0.9.1

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to