[GIT PULL] KVM: Generic changes for 7.0
From: Sean Christopherson
Date: Thu Mar 05 2026 - 14:33:20 EST
Attempt #2 at the flex-array fix and the slots_lock documentation.
The following changes since commit 9ace4753a5202b02191d54e9fdf7f9e3d02b85eb:
Linux 6.19-rc4 (2026-01-04 14:41:55 -0800)
are available in the Git repository at:
https://github.com/kvm-x86/linux.git tags/kvm-x86-generic-7.0-rc3
for you to fetch changes up to f8211e95dfda702ba81ea2e3e7a8c6c967f385fa:
Documentation: KVM: Formalizing taking vcpu->mutex *outside* of kvm->slots_lock (2026-03-02 09:52:09 -0800)
----------------------------------------------------------------
KVM generic changes for 7.0
- Remove a subtle pseudo-overlay of kvm_stats_desc, which, aside from being
unnecessary and confusing, triggered compiler warnings due to
-Wflex-array-member-not-at-end.
- Document that vcpu->mutex is take outside of kvm->slots_lock and
kvm->slots_arch_lock, which is intentional and desirable despite being
rather unintuitive.
----------------------------------------------------------------
Sean Christopherson (2):
KVM: Remove subtle "struct kvm_stats_desc" pseudo-overlay
Documentation: KVM: Formalizing taking vcpu->mutex *outside* of kvm->slots_lock
Documentation/virt/kvm/locking.rst | 2 +
arch/arm64/kvm/guest.c | 4 +-
arch/loongarch/kvm/vcpu.c | 2 +-
arch/loongarch/kvm/vm.c | 2 +-
arch/mips/kvm/mips.c | 4 +-
arch/powerpc/kvm/book3s.c | 4 +-
arch/powerpc/kvm/booke.c | 4 +-
arch/riscv/kvm/vcpu.c | 2 +-
arch/riscv/kvm/vm.c | 2 +-
arch/s390/kvm/kvm-s390.c | 4 +-
arch/x86/kvm/x86.c | 4 +-
include/linux/kvm_host.h | 83 ++++++++++++++++----------------------
include/uapi/linux/kvm.h | 8 ++++
virt/kvm/binary_stats.c | 2 +-
virt/kvm/kvm_main.c | 20 ++++-----
15 files changed, 72 insertions(+), 75 deletions(-)