Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="dDf4ah/8" Received: from mail-yw1-x114a.google.com (mail-yw1-x114a.google.com [IPv6:2607:f8b0:4864:20::114a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1DE7210EB for ; Thu, 7 Dec 2023 18:07:40 -0800 (PST) Received: by mail-yw1-x114a.google.com with SMTP id 00721157ae682-5d942a656b7so19458717b3.1 for ; Thu, 07 Dec 2023 18:07:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1702001259; x=1702606059; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:date:reply-to:from:to:cc :subject:date:message-id:reply-to; bh=BptvliLbbdh5Wt1usUGYyJ/6pHg8JbB115xCaPKtCmQ=; b=dDf4ah/8udU8jZxHPu8zRbPI42H5gjuseUIYUsbfvj6cStHQYYUVdztAH9aif8Ag9M Bu+jvE1KzoXe8VnVUu/zWvIKjawPGwLu3Dsulch0CNNmghU80r/7uBrn+PXKRgC+3RwT gn1NfPGx+74s8yj7HdVOrY3qVN5ecewSVKrSRcTtmvr7JtO4AG5pUbjul+Qc7PEu7kI1 GUe1/RLpnATUhPcIcALN5cr1TkFrD9xqzdsWlWGOLrrscqGuYHMsX0ACzAL95SrZqIMb b2+mO1ZxUiCb1byycXRmfYTCQXGFpeP8Tap506aAY8f7+/llpMhIxTVf/lOtmP1vGC4S uHxg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1702001259; x=1702606059; h=cc:to:from:subject:message-id:mime-version:date:reply-to :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=BptvliLbbdh5Wt1usUGYyJ/6pHg8JbB115xCaPKtCmQ=; b=K+WSrvIzXmN4osWEkbQ6koeHkv1wmXCIU+dHH1+29B1nMuubuwooDttWx3KH3OKE+l rYxLj2rdiEu8VDJFVCLB01oiErK+B8bOoh7Y1zoOGBMGUuejWYCWt2KJc5W2mi78cNBn 0GFNgQTyz0O097f6wEjIvFWR9MQHqVjCflKTFwfXhYodXvmHwpApYw8e4FN9Bjj8vME1 Lwnftox75mk0cJboUgQ8+5E6qlj5nTWzDDeglRfVCxHQgqBeyh52x+Dd2bEN5EEQx45j nJBwpIuBaZxqbeG7xtIrIKEYzu/IExijsFXZ6unImPSx8OLo3e54NTvVdfEx2A6+j/tc ORZA== X-Gm-Message-State: AOJu0YwhKf0Or7O4HYGVyuAUtPLY+g6rMMjJKr1MRYRyA7ctq/XqnR/2 JrOWuDTTKDCQesNIDbZImqayeKCgKo0= X-Google-Smtp-Source: AGHT+IEgUdxPpuKoyTF8TAOPV1sruFitClETp9It5DUTWtsbxGLiEri1zSGnlA7144kJrde8n5FkKYtDEnU= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a05:690c:3013:b0:5d8:4274:bae2 with SMTP id ey19-20020a05690c301300b005d84274bae2mr50870ywb.6.1702001259351; Thu, 07 Dec 2023 18:07:39 -0800 (PST) Reply-To: Sean Christopherson Date: Thu, 7 Dec 2023 18:07:34 -0800 Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 X-Mailer: git-send-email 2.43.0.472.g3155946c3a-goog Message-ID: <20231208020734.1705867-1-seanjc@google.com> Subject: [GIT PULL] KVM: x86: Fixes for 6.7-rcN 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" Please pull a handful of fixes for 6.7-rcN (hopefully N=5). These have all been in -next for a week or so. The following changes since commit ffc253263a1375a65fa6c9f62a893e9767fbebfa: Linux 6.6 (2023-10-29 16:31:08 -1000) are available in the Git repository at: https://github.com/kvm-x86/linux.git tags/kvm-x86-fixes-6.7-rcN for you to fetch changes up to ef8d89033c3f1f6a64757f066b2c17e76d1189f8: KVM: x86: Remove 'return void' expression for 'void function' (2023-12-01 08:14:27 -0800) ---------------------------------------------------------------- KVM fixes for 6.7-rcN: - When checking if a _running_ vCPU is "in-kernel", i.e. running at CPL0, get the CPL directly instead of relying on preempted_in_kernel, which is valid if and only if the vCPU was preempted, i.e. NOT running. - Set .owner for various KVM file_operations so that files refcount the KVM module until KVM is done executing _all_ code, including the last few instructions of kvm_put_kvm(). And then revert the misguided attempt to rely on "struct kvm" refcounts to pin KVM-the-module. - Fix a benign "return void" that was recently introduced. ---------------------------------------------------------------- Like Xu (2): KVM: x86: Get CPL directly when checking if loaded vCPU is in kernel mode KVM: x86: Remove 'return void' expression for 'void function' Sean Christopherson (2): KVM: Set file_operations.owner appropriately for all such structures Revert "KVM: Prevent module exit until all VMs are freed" arch/x86/kvm/debugfs.c | 1 + arch/x86/kvm/x86.c | 9 ++++++--- virt/kvm/kvm_main.c | 18 ++++++++---------- 3 files changed, 15 insertions(+), 13 deletions(-)