summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm
diff options
context:
space:
mode:
authorSean Christopherson <sean.j.christopherson@intel.com>2019-02-05 13:01:21 -0800
committerPaolo Bonzini <pbonzini@redhat.com>2019-02-20 22:48:39 +0100
commit4e103134b862314dc2f2f18f2fb0ab972adc3f5f (patch)
treedccc458d31608d0d922d8af8265bdf938dc35e23 /arch/x86/include/asm
parenta21136345cb6f1a5b7f576701b6a454da5b6e606 (diff)
downloadlinux-0-day-4e103134b862314dc2f2f18f2fb0ab972adc3f5f.tar.gz
linux-0-day-4e103134b862314dc2f2f18f2fb0ab972adc3f5f.tar.xz
KVM: x86/mmu: Zap only the relevant pages when removing a memslot
Modify kvm_mmu_invalidate_zap_pages_in_memslot(), a.k.a. the x86 MMU's handler for kvm_arch_flush_shadow_memslot(), to zap only the pages/PTEs that actually belong to the memslot being removed. This improves performance, especially why the deleted memslot has only a few shadow entries, or even no entries. E.g. a microbenchmark to access regular memory while concurrently reading PCI ROM to trigger memslot deletion showed a 5% improvement in throughput. Cc: Xiao Guangrong <guangrong.xiao@gmail.com> Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/include/asm')
0 files changed, 0 insertions, 0 deletions