aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2008-09-23 12:18:34 -0400
committerAvi Kivity <avi@redhat.com>2008-10-15 08:25:20 -0400
commit0ba73cdadb8ac172f396df7e23c4a9cebd59b550 (patch)
tree5e21a3f93397299cb64fcd3e442106c86624709d /arch/x86/kvm/x86.c
parente8bc217aef67d41d767ede6e7a7eb10f1d47c86c (diff)
KVM: MMU: sync roots on mmu reload
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r--arch/x86/kvm/x86.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 08edeabf15e6..88e6d9abbd2b 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -594,6 +594,7 @@ EXPORT_SYMBOL_GPL(kvm_set_cr4);
594void kvm_set_cr3(struct kvm_vcpu *vcpu, unsigned long cr3) 594void kvm_set_cr3(struct kvm_vcpu *vcpu, unsigned long cr3)
595{ 595{
596 if (cr3 == vcpu->arch.cr3 && !pdptrs_changed(vcpu)) { 596 if (cr3 == vcpu->arch.cr3 && !pdptrs_changed(vcpu)) {
597 kvm_mmu_sync_roots(vcpu);
597 kvm_mmu_flush_tlb(vcpu); 598 kvm_mmu_flush_tlb(vcpu);
598 return; 599 return;
599 } 600 }