diff options
author | Marcelo Tosatti <mtosatti@redhat.com> | 2011-06-21 14:00:10 -0300 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2011-07-12 13:16:41 +0300 |
commit | f8f7e5ee1037e347eafff8f526913b92cec54873 (patch) | |
tree | 6513b6b15ae84c36cb94526b2b689cb0265b2b89 | |
parent | 1aee47a0276f75a371e13a936a48f64eb5d3ec1b (diff) |
Revert "KVM: MMU: make kvm_mmu_reset_context() flush the guest TLB"
This reverts commit bee931d31e588b8eb86b7edee32fac2d16930cd7.
TLB flush should be done lazily during guest entry, in
kvm_mmu_load().
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
-rw-r--r-- | arch/x86/kvm/mmu.c | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 9c629b54d362..da0f3b081076 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c @@ -3054,18 +3054,8 @@ static void destroy_kvm_mmu(struct kvm_vcpu *vcpu) int kvm_mmu_reset_context(struct kvm_vcpu *vcpu) { - int r; - destroy_kvm_mmu(vcpu); - r = init_kvm_mmu(vcpu); - - if (r) - goto err; - - kvm_mmu_sync_roots(vcpu); - kvm_mmu_flush_tlb(vcpu); -err: - return r; + return init_kvm_mmu(vcpu); } EXPORT_SYMBOL_GPL(kvm_mmu_reset_context); |