diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2008-09-23 12:18:34 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2008-10-15 08:25:20 -0400 |
commit | 0ba73cdadb8ac172f396df7e23c4a9cebd59b550 (patch) | |
tree | 5e21a3f93397299cb64fcd3e442106c86624709d /arch/x86/kvm/x86.c | |
parent | e8bc217aef67d41d767ede6e7a7eb10f1d47c86c (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.c | 1 |
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); | |||
594 | void kvm_set_cr3(struct kvm_vcpu *vcpu, unsigned long cr3) | 594 | void 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 | } |