aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYang Zhang <yang.z.zhang@Intel.com>2013-08-08 10:36:22 +0200
committerJan Beulich <jbeulich@suse.com>2013-08-08 10:36:22 +0200
commit28f9c24f07eb2077210c80fbb36952df1b25966b (patch)
treee852f0abcae9672966cf574799c1732beea91e35
parent3d41dfa5e08ac5a39e82c6691e0af283beed47d5 (diff)
downloadxen-28f9c24f07eb2077210c80fbb36952df1b25966b.tar.gz
xen-28f9c24f07eb2077210c80fbb36952df1b25966b.tar.bz2
xen-28f9c24f07eb2077210c80fbb36952df1b25966b.zip
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@Intel.com> Acked-by: Keir Fraser <keir@xen.org> master commit: e1ab5c77b44b7bd835a2c032fa4963b36545fdb3 master date: 2013-08-06 17:22:35 +0200
-rw-r--r--xen/arch/x86/mm/paging.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/arch/x86/mm/paging.c b/xen/arch/x86/mm/paging.c
index ca879f971f..37429757d4 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,