Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f8f7e5ee authored by Marcelo Tosatti's avatar Marcelo Tosatti Committed by Avi Kivity
Browse files

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: default avatarMarcelo Tosatti <mtosatti@redhat.com>
parent 1aee47a0
Loading
Loading
Loading
Loading
+1 −11
Original line number Diff line number Diff line
@@ -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);