[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen stable-4.2] Nested VMX: Flush TLBs and Caches if paging mode changed



commit 28f9c24f07eb2077210c80fbb36952df1b25966b
Author:     Yang Zhang <yang.z.zhang@xxxxxxxxx>
AuthorDate: Thu Aug 8 10:36:22 2013 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Thu Aug 8 10:36:22 2013 +0200

    Nested VMX: Flush TLBs and Caches if paging mode changed
    
    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@xxxxxxxxx>
    Acked-by: Keir Fraser <keir@xxxxxxx>
    master commit: e1ab5c77b44b7bd835a2c032fa4963b36545fdb3
    master date: 2013-08-06 17:22:35 +0200
---
 xen/arch/x86/mm/paging.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/xen/arch/x86/mm/paging.c b/xen/arch/x86/mm/paging.c
index ca879f9..3742975 100644
--- a/xen/arch/x86/mm/paging.c
+++ b/xen/arch/x86/mm/paging.c
@@ -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,
--
generated by git-patchbot for /home/xen/git/xen.git#stable-4.2

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.