]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: x86: Flush only affected TLB entries in kvm_mmu_invlpg*
authorJunaid Shahid <junaids@google.com>
Fri, 29 Jun 2018 20:10:05 +0000 (13:10 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 6 Aug 2018 15:59:01 +0000 (17:59 +0200)
commit7bc7b97ec5d330f2b80ad90a0b81e96a37691583
tree740ebc1243b63b7b2aafb9c058480395f35f2a41
parentfe6abfa17c46a39835467716c98764f4e140a794
kvm: x86: Flush only affected TLB entries in kvm_mmu_invlpg*

This needs a minor bug fix. The updated patch is as follows.

Thanks,
Junaid

------------------------------------------------------------------------------

kvm_mmu_invlpg() and kvm_mmu_invpcid_gva() only need to flush the TLB
entries for the specific guest virtual address, instead of flushing all
TLB entries associated with the VM.

Signed-off-by: Junaid Shahid <junaids@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu.c
arch/x86/kvm/svm.c
arch/x86/kvm/vmx.c