[PATCHV2 0/3] kvm: x86: make PTE_PREFETCH_NUM tunable

From: Sergey Senozhatsky
Date: Tue Oct 19 2021 - 11:32:33 EST


This series adds new IOCTL which make it possible to tune
PTE_PREFETCH_NUM value on per-VM basis.

v2:
- added ioctl (previously was sysfs param) [David]
- preallocate prefetch buffers [David]
- converted arch/x86/kvm/mmu/paging_tmpl.h [David]

Sergey Senozhatsky (3):
KVM: x86: introduce kvm_mmu_pte_prefetch structure
KVM: x86: use mmu_pte_prefetch for guest_walker
KVM: x86: add KVM_SET_MMU_PREFETCH ioctl

Documentation/virt/kvm/api.rst | 21 ++++++++++++
arch/x86/include/asm/kvm_host.h | 12 +++++++
arch/x86/kvm/mmu.h | 4 +++
arch/x86/kvm/mmu/mmu.c | 57 ++++++++++++++++++++++++++++++---
arch/x86/kvm/mmu/paging_tmpl.h | 39 +++++++++++++++-------
arch/x86/kvm/x86.c | 38 +++++++++++++++++++++-
include/uapi/linux/kvm.h | 4 +++
7 files changed, 158 insertions(+), 17 deletions(-)

--
2.33.0.1079.g6e70778dc9-goog