[xen staging] x86/mm: put paging_update_nestedmode under CONFIG_HVM

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen staging] x86/mm: put paging_update_nestedmode under CONFIG_HVM

patchbot
commit d7c60727a3f26b7fda49c8de188dd1cec021d23a
Author:     Wei Liu <[hidden email]>
AuthorDate: Fri Aug 17 11:23:28 2018 +0100
Commit:     Wei Liu <[hidden email]>
CommitDate: Thu Sep 13 18:05:57 2018 +0100

    x86/mm: put paging_update_nestedmode under CONFIG_HVM
   
    Nested HVM is not enabled when !CONFIG_HVM.
   
    Signed-off-by: Wei Liu <[hidden email]>
    Acked-by: George Dunlap <[hidden email]>
---
 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 dcee496eb0..7f460bd321 100644
--- a/xen/arch/x86/mm/paging.c
+++ b/xen/arch/x86/mm/paging.c
@@ -919,6 +919,7 @@ const struct paging_mode *paging_get_mode(struct vcpu *v)
     return paging_get_nestedmode(v);
 }
 
+#ifdef CONFIG_HVM
 void paging_update_nestedmode(struct vcpu *v)
 {
     ASSERT(nestedhvm_enabled(v->domain));
@@ -930,6 +931,7 @@ void paging_update_nestedmode(struct vcpu *v)
         v->arch.paging.nestedmode = NULL;
     hvm_asid_flush_vcpu(v);
 }
+#endif
 
 void paging_write_p2m_entry(struct p2m_domain *p2m, unsigned long gfn,
                             l1_pgentry_t *p, l1_pgentry_t new,
--
generated by git-patchbot for /home/xen/git/xen.git#staging

_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog