]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit - arch/x86/kvm/svm/svm.c
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)
commitfaff87588d8bfd9e56e9203412f0bb80455da7b9
tree740ebc1243b63b7b2aafb9c058480395f35f2a41
parent956bf3531fba53c0501eda4fbc67950b0f7b913f
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