Skip to content

KVM: x86: Backports for 6.6.y

Sean Christopherson kvm lkml stable 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest20 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20KVM: x86/hyper-v: Skip non-canonical addresses during PV TLB flusharch/x86/kvm/hyperv.c+3 -00 replies
2/20KVM: SVM: Set RFLAGS.IF=1 in C code, to get VMRUN out of the STI shadowarch/x86/kvm/svm/svm.c arch/x86/kvm/svm/vmenter.S+15 -80 replies
3/20KVM: x86: Plumb in the vCPU to kvm_x86_ops.hwapic_isr_update()arch/x86/include/asm/kvm_host.h arch/x86/kvm/lapic.c arch/x86/kvm/vmx/vmx.c+6 -60 replies
4/20KVM: nVMX: Defer SVI update to vmcs01 on EOI when L2 is active w/o VIDarch/x86/kvm/lapic.c arch/x86/kvm/lapic.h arch/x86/kvm/vmx/nested.c +2 more+34 -00 replies
5/20KVM: x86: Take irqfds.lock when adding/deleting IRQ bypass producerarch/x86/kvm/x86.c+15 -30 replies
6/20KVM: x86: Snapshot the host's DEBUGCTL in common x86arch/x86/include/asm/kvm_host.h arch/x86/kvm/vmx/vmx.c arch/x86/kvm/vmx/vmx.h +1 more+4 -80 replies
7/20KVM: x86: Snapshot the host's DEBUGCTL after disabling IRQsarch/x86/kvm/x86.c+2 -10 replies
8/20KVM: x86: Plumb "force_immediate_exit" into kvm_entry() tracepointarch/x86/include/asm/kvm_host.h arch/x86/kvm/svm/svm.c arch/x86/kvm/trace.h +2 more+14 -90 replies
9/20KVM: VMX: Re-enter guest in fastpath for "spurious" preemption timer exitsarch/x86/kvm/vmx/vmx.c+9 -20 replies
10/20KVM: VMX: Handle forced exit due to preemption timer in fastpatharch/x86/kvm/vmx/vmx.c+8 -50 replies
11/20KVM: x86: Move handling of is_guest_mode() into fastpath exit handlersarch/x86/kvm/svm/svm.c arch/x86/kvm/vmx/vmx.c+6 -60 replies
12/20KVM: VMX: Handle KVM-induced preemption timer exits in fastpath for L2arch/x86/kvm/vmx/vmx.c+20 -20 replies
13/20KVM: x86: Fully defer to vendor code to decide how to force immediate exitarch/x86/include/asm/kvm-x86-ops.h arch/x86/include/asm/kvm_host.h arch/x86/kvm/svm/svm.c +3 more+19 -360 replies
14/20KVM: x86: Convert vcpu_run()'s immediate exit param into a generic bitmaparch/x86/include/asm/kvm_host.h arch/x86/kvm/svm/svm.c arch/x86/kvm/vmx/vmx.c +1 more+17 -60 replies
15/20KVM: x86: Drop kvm_x86_ops.set_dr6() in favor of a new KVM_RUN flagarch/x86/include/asm/kvm-x86-ops.h arch/x86/include/asm/kvm_host.h arch/x86/kvm/svm/svm.c +2 more+11 -140 replies
16/20KVM: VMX: Allow guest to set DEBUGCTL.RTM_DEBUG if RTM is supportedarch/x86/include/asm/msr-index.h arch/x86/kvm/vmx/vmx.c+5 -00 replies
17/20KVM: VMX: Extract checking of guest's DEBUGCTL into helperarch/x86/kvm/vmx/vmx.c+17 -120 replies
18/20KVM: nVMX: Check vmcs12->guest_ia32_debugctl on nested VM-Enterarch/x86/kvm/vmx/nested.c arch/x86/kvm/vmx/vmx.c arch/x86/kvm/vmx/vmx.h+15 -50 replies
19/20KVM: VMX: Wrap all accesses to IA32_DEBUGCTL with getter/setter APIsarch/x86/kvm/vmx/nested.c arch/x86/kvm/vmx/pmu_intel.c arch/x86/kvm/vmx/vmx.c +1 more+24 -120 replies
20/20KVM: VMX: Preserve host's DEBUGCTLMSR_FREEZE_IN_SMM while running the guestarch/x86/include/asm/kvm_host.h arch/x86/kvm/vmx/nested.c arch/x86/kvm/vmx/vmx.c +2 more+41 -30 replies

Reviews trailers per patch

5 of 20 patches have a Reviewed-by or Acked-by.

PatchJim MattsonChao GaoXiaoyao LiRavi BangoriaDapeng Mi
1/20
2/20R-b
3/20R-b T-b
4/20T-b
5/20
6/20R-b Reviewed-and-tested-by
7/20Reviewed-and-tested-by
8/20
9/20
10/20
11/20
12/20
13/20
14/20
15/20
16/20
17/20R-b
18/20
19/20R-b
20/20

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v1 thread

Cover letter [PATCH 6.6.y 00/20] KVM: x86: Backports for 6.6.y

Same spiel as the 6.1.y collection...

This is a collection of backports for patches that were Cc'd to stable, but failed to apply, along with their dependencies.

Note, Sasha already posted[1][2] these (and I acked them):

KVM: VMX: Allow guest to set DEBUGCTL.RTM_DEBUG if RTM is supported
KVM: x86/pmu: Gate all "unimplemented MSR" prints on report_ignored_msrs
KVM: VMX: Extract checking of guest's DEBUGCTL into helper
KVM: nVMX: Check vmcs12->guest_ia32_debugctl on nested VM-Enter
KVM: VMX: Wrap all accesses to IA32_DEBUGCTL with getter/setter APIs

I'm including them here to hopefully make life easier for y'all, and because the order they are presented here is the preferred ordering, i.e. should be the same ordering as the original upstream patches.

But, if you end up grabbing Sasha's patches first, it's not a big deal as the only true dependencies is that the DEBUGCTL.RTM_DEBUG patch needs to land before "Check vmcs12->guest_ia32_debugctl on nested VM-Enter".

Many of the patches to get to the last patch (the DEBUGCTLMSR_FREEZE_IN_SMM fix) are dependencies that arguably shouldn't be backported to LTS kernels. I opted to do the backports because none of the patches are scary (if it was 1-3 dependency patches instead of 8 I wouldn't hesitate), and there's a decent chance they'll be dependencies for future fixes.

[1] https://lore.kernel.org/all/[email protected]
[2] https://lore.kernel.org/all/[email protected]

Chao Gao (1):
KVM: nVMX: Defer SVI update to vmcs01 on EOI when L2 is active w/o VID

Manuel Andreas (1):
KVM: x86/hyper-v: Skip non-canonical addresses during PV TLB flush

Maxim Levitsky (3):
KVM: nVMX: Check vmcs12->guest_ia32_debugctl on nested VM-Enter
KVM: VMX: Wrap all accesses to IA32_DEBUGCTL with getter/setter APIs
KVM: VMX: Preserve host's DEBUGCTLMSR_FREEZE_IN_SMM while running the
guest

Sean Christopherson (15):
KVM: SVM: Set RFLAGS.IF=1 in C code, to get VMRUN out of the STI
shadow
KVM: x86: Plumb in the vCPU to kvm_x86_ops.hwapic_isr_update()
KVM: x86: Take irqfds.lock when adding/deleting IRQ bypass producer
KVM: x86: Snapshot the host's DEBUGCTL in common x86
KVM: x86: Snapshot the host's DEBUGCTL after disabling IRQs
KVM: x86: Plumb "force_immediate_exit" into kvm_entry() tracepoint
KVM: VMX: Re-enter guest in fastpath for "spurious" preemption timer
exits
KVM: VMX: Handle forced exit due to preemption timer in fastpath
KVM: x86: Move handling of is_guest_mode() into fastpath exit handlers
KVM: VMX: Handle KVM-induced preemption timer exits in fastpath for L2
KVM: x86: Fully defer to vendor code to decide how to force immediate
exit
KVM: x86: Convert vcpu_run()'s immediate exit param into a generic
bitmap
KVM: x86: Drop kvm_x86_ops.set_dr6() in favor of a new KVM_RUN flag
KVM: VMX: Allow guest to set DEBUGCTL.RTM_DEBUG if RTM is supported
KVM: VMX: Extract checking of guest's DEBUGCTL into helper

 arch/x86/include/asm/kvm-x86-ops.h |   2 -
 arch/x86/include/asm/kvm_host.h    |  22 ++--
 arch/x86/include/asm/msr-index.h   |   1 +
 arch/x86/kvm/hyperv.c              |   3 +
 arch/x86/kvm/lapic.c               |  19 +++-
 arch/x86/kvm/lapic.h               |   1 +
 arch/x86/kvm/svm/svm.c             |  42 +++++---
 arch/x86/kvm/svm/vmenter.S         |   9 +-
 arch/x86/kvm/trace.h               |   9 +-
 arch/x86/kvm/vmx/nested.c          |  26 ++++-
 arch/x86/kvm/vmx/pmu_intel.c       |   8 +-
 arch/x86/kvm/vmx/vmx.c             | 164 +++++++++++++++++++----------
 arch/x86/kvm/vmx/vmx.h             |  31 +++++-
 arch/x86/kvm/x86.c                 |  46 +++++---
 14 files changed, 265 insertions(+), 118 deletions(-)

base-commit: 3a8ababb8b6a0ced2be230b60b6e3ddbd8d67014

Signature · 1 line
2.51.0.rc1.163.g2494970778-goog