]> xenbits.xensource.com Git - xen.git/commitdiff
Nested VMX: Flush TLBs and Caches if paging mode changed
authorYang Zhang <yang.z.zhang@Intel.com>
Thu, 8 Aug 2013 08:36:22 +0000 (10:36 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 8 Aug 2013 08:36:22 +0000 (10:36 +0200)
According to SDM, if paging mode is changed, then whole TLBs and caches will
be flushed. This is missed in nested handle logic. Also this fixed the issue
that 64 bits windows cannot boot up on top of L1 kvm.

Signed-off-by: Yang Zhang <yang.z.zhang@Intel.com>
Acked-by: Keir Fraser <keir@xen.org>
master commit: e1ab5c77b44b7bd835a2c032fa4963b36545fdb3
master date: 2013-08-06 17:22:35 +0200

xen/arch/x86/mm/paging.c

index ca879f971f8fca9eb8977154346c49bbd1daa21c..37429757d4a568d0f835bef58ce5183e3cc6aa52 100644 (file)
@@ -828,6 +828,7 @@ void paging_update_nestedmode(struct vcpu *v)
     else
         /* TODO: shadow-on-shadow */
         v->arch.paging.nestedmode = NULL;
+    hvm_asid_flush_vcpu(v);
 }
 
 void paging_write_p2m_entry(struct p2m_domain *p2m, unsigned long gfn,