aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm
diff options
context:
space:
mode:
authorMarcelo Tosatti <mtosatti@redhat.com>2011-06-21 13:00:10 -0400
committerAvi Kivity <avi@redhat.com>2011-07-12 06:16:41 -0400
commitf8f7e5ee1037e347eafff8f526913b92cec54873 (patch)
tree6513b6b15ae84c36cb94526b2b689cb0265b2b89 /arch/x86/kvm
parent1aee47a0276f75a371e13a936a48f64eb5d3ec1b (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>
Diffstat (limited to 'arch/x86/kvm')
-rw-r--r--arch/x86/kvm/mmu.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index 9c629b54d36..da0f3b08107 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)
3054 3054
3055int kvm_mmu_reset_context(struct kvm_vcpu *vcpu) 3055int kvm_mmu_reset_context(struct kvm_vcpu *vcpu)
3056{ 3056{
3057 int r;
3058
3059 destroy_kvm_mmu(vcpu); 3057 destroy_kvm_mmu(vcpu);
3060 r = init_kvm_mmu(vcpu); 3058 return init_kvm_mmu(vcpu);
3061
3062 if (r)
3063 goto err;
3064
3065 kvm_mmu_sync_roots(vcpu);
3066 kvm_mmu_flush_tlb(vcpu);
3067err:
3068 return r;
3069} 3059}
3070EXPORT_SYMBOL_GPL(kvm_mmu_reset_context); 3060EXPORT_SYMBOL_GPL(kvm_mmu_reset_context);
3071 3061