[GIT PULL] KVM: Generic changes for 6.20

From: Sean Christopherson

Date: Fri Feb 06 2026 - 23:11:21 EST


Fix -Wflex-array-member-not-at-end warnings and document that vcpu->mutex is
taken outside of kvm->slots_lock.

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-6.20

for you to fetch changes up to 98333091750d0288b1c64c47afe1950dbda1afe6:

Documentation: KVM: Formalizing taking vcpu->mutex *outside* of kvm->slots_lock (2026-01-08 11:00:35 -0800)

----------------------------------------------------------------
KVM generic changes for 6.20

- 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, which is all
kinds of unintuitive, but is unfortunately the existing behavior for
multiple architectures, and in a weird way actually makes sense.

----------------------------------------------------------------
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(-)