From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f74.google.com (mail-pj1-f74.google.com [209.85.216.74]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 132792BE7BA for ; Sat, 7 Feb 2026 04:10:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770437418; cv=none; b=AtQZgz94XvUcVpMgy4cnUZ52J1Xh1sKq+Xc3Zu8CazbbqXXxeg9PdtELOBvx3teXGT571olb80bR4QE1XL04agcjGOeQq1lv2dOypgN8ipFpA32p8opqH3IJb48WC6osuSthADwDDFPaFG/AkQRtnvhOMQ71qSrdRBSuL6Kn94Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770437418; c=relaxed/simple; bh=p5nxu3id8UolerNhjHoe422qJFegewgpXd0OybvIbFw=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=biXJWFkEdkUdChpZSbvg7JNBT8MopLzvwqlaZ+O4HuZfBafu4zlaivQ1THo9w/RlHWRJMzYRcWmRUTtYiCbyCv7FeD56MC7pITFSoluqe8XpErDTgsdfpZXEa7MPxOryM1ghzHoN6zQ6CyKDNk9Wr+UGSGNXbW/jXx+w/6KcZOk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=XsKTKtuR; arc=none smtp.client-ip=209.85.216.74 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="XsKTKtuR" Received: by mail-pj1-f74.google.com with SMTP id 98e67ed59e1d1-3545dbb7ee6so2335540a91.3 for ; Fri, 06 Feb 2026 20:10:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1770437417; x=1771042217; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:from:to:cc:subject:date:message-id:reply-to; bh=y3zDHsIXP5YzU2BtDYeB6vfxdCF+cg0ZFzAe69Uf118=; b=XsKTKtuR93pzjvC0//157oMfIixq2tGQwZgHVYvi1oVSFnok0U9GzDDpQv9RfvBxxz O/P0YNz6xHPzY+2zYhy/i8m+sregtYWisQUbCyd9D9FK784OTWimcvgLxCrjdSOIfWpm NNN7dJnAYtpEyWNco4k4ZcRMJUekGuTIlcKm9yISb5mNnwG893LlsFvz1eLK8cAJDEIy Fyw9dKTUQq2dHCofET5wlMOfRl+/yc6KWc8wH27L/9ZKqN2FVAcHALlxwAB0iUcXjdta oGNc/nYS6oWPxQOctS0n1ZA3cQWF69mgVblRxd8CuselrNIQep2mBUoG7uXL6f8jKXy8 wKxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770437417; x=1771042217; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:reply-to:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=y3zDHsIXP5YzU2BtDYeB6vfxdCF+cg0ZFzAe69Uf118=; b=UtSL9MK4oHUXJHruT/rk6T2R7jHP8D0h169r8shAI/8wbL7iQj0F8of1KjtvEbHKBU kqHI9HJjIF7vIDWBQsa8TsPxqK+NODxvSMvTgMEoLCVfDeBPwfNbkDLETLwZWXkGJ1XX ootI0udq5EFVjx02BFvar2xW/RBy0hcKIDVZbUXmxD9DcKHhtA06zFLnF6E7926L4XB/ WnOeSr0F10CTs4V+8QSnftQBD5xwCHwXEf2UIQSu9jrc/FE03EGxDFQYMtZADgJuMmsE ElN+QJ+iOZD1ql5mfO11Lj7yuyFFvGJnol095YHOyZMriCpNltLu9PMQ3Ks4ml1dfV7p 5TTQ== X-Forwarded-Encrypted: i=1; AJvYcCW4iCA7xWcW1Xc0y21h5ONvsbb1kvtkuxxDGY9CMCXMEkpuykScjXfi5Sj2YrN2mirdvL0rCW9DhGpmDEI=@vger.kernel.org X-Gm-Message-State: AOJu0YwbAxbtlEZpaKVCQSv/VWT437ur2wRgvZ5dAHfZlZpKJj1RN8kI isDcHtutjefC0Rp5COptmy564M8yS8DQmb8B1sYqZytlqpayrWTc/cNKpw9IDiG3OonzQWVolnZ 1bpUk7A== X-Received: from pjbqi5.prod.google.com ([2002:a17:90b:2745:b0:353:d0b3:8611]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:46:b0:349:7f0a:381b with SMTP id 98e67ed59e1d1-354b3ba3608mr4083757a91.8.1770437417386; Fri, 06 Feb 2026 20:10:17 -0800 (PST) Reply-To: Sean Christopherson Date: Fri, 6 Feb 2026 20:10:04 -0800 In-Reply-To: <20260207041011.913471-1-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260207041011.913471-1-seanjc@google.com> X-Mailer: git-send-email 2.53.0.rc2.204.g2597b5adb4-goog Message-ID: <20260207041011.913471-3-seanjc@google.com> Subject: [GIT PULL] KVM: Generic changes for 6.20 From: Sean Christopherson To: Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Sean Christopherson Content-Type: text/plain; charset="UTF-8" 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(-)