Further reworked KVM patches
Get series with b4
b4 am [email protected]Versions newest first
- v4 Latest5 of 8 patches 18 repliesIn review
5 of 8 patches are in this archive. The cover letter announces 8.
Patches in v4 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | Linux Patch #1Documentation/ arch/ kernel/ | +20 | 1 reply | |
| 3/8 | Linux Patch #3arch/ arch/ | +14 | 8 replies | |
| 4/8 | Linux Patch #4arch/ | +35 | 1 reply | |
| 6/8 | Linux Patch #6arch/ | +19 | 1 reply | |
| 8/8 | Linux Patch #8arch/ | +21 | 5 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.
Cover letter [MODERATED] [PATCH v4 0/8] [PATCH v4] Further reworked KVM patches
Hi!
This patchset has Paolo's patches + mine with the review comment addressed. That is:
- Moved the warning when launching guests.
- Make it warn if disallow_smt=0
- Make it error if disallow_smt=1 and also fail ioctl:ioctl(KVM_CREATE_VM) failed: 95 Operation not supported
qemu-system-x86_64: failed to initialize KVM: Operation not supported
- Expand the blacklist of VMexit handlers that need L1 flushing.
It also tacks on an optimization if the non-default vmentry_l1d_flush=2 (always use L1D cache) parameter is used.
I will send off on Monday a build to the performance team so will have a better feel for it - but in the meantime was wondering if other folks had done SPEC* type runs? I did some kernel compilations and the numbers were in the noise.
Documentation/admin-guide/kernel-parameters.txt | 17 +++ arch/x86/include/asm/kvm_host.h | 8 ++ arch/x86/include/asm/msr-index.h | 6 + arch/x86/kvm/mmu.c | 1 + arch/x86/kvm/svm.c | 1 + arch/x86/kvm/vmx.c | 183 ++++++++++++++++++------ arch/x86/kvm/x86.c | 69 ++++++++- kernel/cpu.c | 1 + 8 files changed, 245 insertions(+), 41 deletions(-)
Konrad Rzeszutek Wilk (6):
x86/KVM: Warn user if KVM is loaded SMT and L1TF CPU bug being present. x86/KVM/VMX: Split the VMX MSR LOAD structures to have an host/guest numbers. x86/KVM/VMX: Add find_msr helper function
x86/KVM/VMX: Seperate the VMX AUTOLOAD guest/host number accounting. x86/KVM/VMX: Add framework for having disjoint amount of MSRs to save/restore x86/KVM/VMX: Use MSR save list for IA32_FLUSH_CMD if required.
Paolo Bonzini (2):
kvm: x86: mitigation for L1 cache terminal fault vulnerabilities x86/KVM: Use L1 cache flush before VMENTER if available.