diff options
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 | } |