Skip to contentSkip to conversation

KVM: x86: Fixes for 6.4

DISCUSSION Sean Christopherson 2 participants 2 messages Jun 3, 2023 KVM

lore
Share & tools
lore

Sean Christopherson

author reviewer
#0 lore raw

Please pull a few x86 fixes for 6.4. Nothing ridiculously urgent, but the vNMI fix in particular would be nice to get in 6.4.

The following changes since commit b9846a698c9aff4eb2214a06ac83638ad098f33f:

KVM: VMX: add MSR_IA32_TSX_CTRL into msrs_to_save (2023-05-21 04:05:51 -0400)

are available in the Git repository at:

https://github.com/kvm-x86/linux.git tags/kvm-x86-fixes-6.4

for you to fetch changes up to 47d2804bc99ca873470df17c20737b28225a320d:

KVM: selftests: Add test for race in kvm_recalculate_apic_map() (2023-06-02 17:21:06 -0700)

----------------------------------------------------------------
KVM x86 fixes for 6.4

- Fix a memslot lookup bug in the NX recovery thread that could theoretically let userspace bypass the NX hugepage mitigation

- Fix a s/BLOCKING/PENDING bug in SVM's vNMI support

- Account exit stats for fastpath VM-Exits that never leave the super tight run-loop

- Fix an out-of-bounds bug in the optimized APIC map code, and add a regression test for the race.

----------------------------------------------------------------
Maciej S. Szmigiero (1):
KVM: SVM: vNMI pending bit is V_NMI_PENDING_MASK not V_NMI_BLOCKING_MASK

Michal Luczaj (1):
KVM: selftests: Add test for race in kvm_recalculate_apic_map()

Sean Christopherson (3):
KVM: x86/mmu: Grab memslot for correct address space in NX recovery worker
KVM: x86: Account fastpath-only VM-Exits in vCPU stats
KVM: x86: Bail from kvm_recalculate_phys_map() if x2APIC ID is out-of-bounds

 arch/x86/kvm/lapic.c                               | 20 +++++-
 arch/x86/kvm/mmu/mmu.c                             |  5 +-
 arch/x86/kvm/svm/svm.c                             |  2 +-
 arch/x86/kvm/x86.c                                 |  3 +
 tools/testing/selftests/kvm/Makefile               |  1 +
 .../selftests/kvm/x86_64/recalc_apic_map_test.c    | 74 ++++++++++++++++++++++
 6 files changed, 101 insertions(+), 4 deletions(-)
 create mode 100644 tools/testing/selftests/kvm/x86_64/recalc_apic_map_test.c
maintainer
#1 lore raw
Quoted 8 lines · Sean Christopherson

Please pull a few x86 fixes for 6.4. Nothing ridiculously urgent, but the vNMI fix in particular would be nice to get in 6.4.

The following changes since commit b9846a698c9aff4eb2214a06ac83638ad098f33f:

KVM: VMX: add MSR_IA32_TSX_CTRL into msrs_to_save (2023-05-21 04:05:51 -0400)

Quoted 7 lines

are available in the Git repository at:

https://github.com/kvm-x86/linux.git tags/kvm-x86-fixes-6.4

for you to fetch changes up to 47d2804bc99ca873470df17c20737b28225a320d:

KVM: selftests: Add test for race in kvm_recalculate_apic_map() (2023-06-02 17:21:06 -0700)

Pulled, thanks.

Paolo

Quoted 36 lines

----------------------------------------------------------------
KVM x86 fixes for 6.4

- Fix a memslot lookup bug in the NX recovery thread that could theoretically let userspace bypass the NX hugepage mitigation

- Fix a s/BLOCKING/PENDING bug in SVM's vNMI support

- Account exit stats for fastpath VM-Exits that never leave the super tight run-loop

- Fix an out-of-bounds bug in the optimized APIC map code, and add a regression test for the race.

----------------------------------------------------------------
Maciej S. Szmigiero (1):
KVM: SVM: vNMI pending bit is V_NMI_PENDING_MASK not V_NMI_BLOCKING_MASK

Michal Luczaj (1):
KVM: selftests: Add test for race in kvm_recalculate_apic_map()

Sean Christopherson (3):
KVM: x86/mmu: Grab memslot for correct address space in NX recovery worker
KVM: x86: Account fastpath-only VM-Exits in vCPU stats
KVM: x86: Bail from kvm_recalculate_phys_map() if x2APIC ID is out-of-bounds

 arch/x86/kvm/lapic.c                               | 20 +++++-
 arch/x86/kvm/mmu/mmu.c                             |  5 +-
 arch/x86/kvm/svm/svm.c                             |  2 +-
 arch/x86/kvm/x86.c                                 |  3 +
 tools/testing/selftests/kvm/Makefile               |  1 +
 .../selftests/kvm/x86_64/recalc_apic_map_test.c    | 74 ++++++++++++++++++++++
 6 files changed, 101 insertions(+), 4 deletions(-)
 create mode 100644 tools/testing/selftests/kvm/x86_64/recalc_apic_map_test.c