summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorLiang Chen <liangchen.linux@gmail.com>2014-09-18 12:38:37 -0400
committerPaolo Bonzini <pbonzini@redhat.com>2014-09-24 14:07:51 +0200
commit77c3913b74212a86027d311f5e81625736816620 (patch)
tree4aa78168935fdc508b8194733afc0a55e3bae205 /arch/x86/kvm/x86.c
parenta70656b63a82d639b0cec54861bf8faf16ad74e6 (diff)
downloadlinux-77c3913b74212a86027d311f5e81625736816620.tar.gz
KVM: x86: directly use kvm_make_request again
A one-line wrapper around kvm_make_request is not particularly useful. Replace kvm_mmu_flush_tlb() with kvm_make_request(). Signed-off-by: Liang Chen <liangchen.linux@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r--arch/x86/kvm/x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 65b97d5567fe..47678d4e229a 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -729,7 +729,7 @@ int kvm_set_cr3(struct kvm_vcpu *vcpu, unsigned long cr3)
{
if (cr3 == kvm_read_cr3(vcpu) && !pdptrs_changed(vcpu)) {
kvm_mmu_sync_roots(vcpu);
- kvm_mmu_flush_tlb(vcpu);
+ kvm_make_request(KVM_REQ_TLB_FLUSH, vcpu);
return 0;
}