From nobody Wed Feb 11 05:35:55 2026 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 354EA25DAFF for ; Thu, 29 May 2025 23:40:32 +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=1748562033; cv=none; b=r4t6u8FXTxg65+b+688VApEQYDiWyWnZqTbIAQtSC90tb6bHeBcqIw1oAtqMwbb+IdJiK1xyrjpUW84iDoHQ0sCjEhnj4h/1vKmMaWl0rmfPwRgHKpVaPAG7h19TgiKkscXnQt9Fso+I8iLWjoL2nVBzH7NNsa1TMasV5iBloaM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1748562033; c=relaxed/simple; bh=w9qcOUDxn2o93ZPOZkLqGaThFl9+MbTm+hKWzsw1Eq4=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Hux5vO3QBiuIkPax7YRuoydDY6hLkD3E/yHN6SMcAs7dAnHh5sK/WtBwjiLwOguR9fTIUxyMXAE90nHg3xHOHf9X2zHTf+imf0t19trQI5d2vkeZILxSLDJRQbng5L/f72laZX9z/22WzE+sQyd5EkS0+Ds6IwzM9tvdGgWr3Ms= 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=Yv4LIl8E; 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="Yv4LIl8E" Received: by mail-pj1-f74.google.com with SMTP id 98e67ed59e1d1-310a0668968so1332587a91.0 for ; Thu, 29 May 2025 16:40:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1748562032; x=1749166832; 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=Fiko08bOlN0blrG6cYr3wwhV1uIlBmvi7ORMBzT1TNE=; b=Yv4LIl8Esi5lV7uJnrbmI9hRjCQdVekTVzbYa8w66x9ZVWRhgj33X11d0VDJoA0K3x S68TbhxZ5OVmsQDFeBfaEhXP+6gnX8ysC2oYf5iNmyTZ8KrcCY+ufcbH0Box74jawBvp REq8oKtXwfFEnu36QhUHWsOmZmGIYPJB5pIYHecJXV/FXPQS7iHwXmRh/m9WZ9uUGDyZ zJ1I98pynapt9hfZgF3HR/pnIIyskWdq0mhjO3dTOnqD1fI1pGtiRdq4j+MG3Uk9fF/q ErMYCEw/v7rXXJGilIQUO2RImbYuL8P69F5/YsH2GAxnG3rUnuW6Tc3811wIuEMuN3q/ c56w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1748562032; x=1749166832; 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=Fiko08bOlN0blrG6cYr3wwhV1uIlBmvi7ORMBzT1TNE=; b=v5BLawV9qeeOobtWt+jPHeYXQBW8Nysr/H81moNAJRTBmhRUtxQ5lZsDq1gyttPs6B CjuOD1SFEXgwFIHssbaNWSWzZbF0jmNGk2VXiDDVrlQBBp4+4lgbcnriFKw6CbfTq0Z+ vqp4dQ333nsZiumKlntDEsAvX68dJet/OfeVLEOD5vuMM740ZY4wByI1pGm7diP2C8wR l6rcYU4bO1ep6UyMtcznf3Uw6OhHntUciXLRpjdNRaDOV0WAV8nlmoAnAAdtEDbZ4QHa b4ntXzPpOX6a8HXGJuxpE009n6WqqwEeKYfiFq7YIyanvIr7qrXJoU/JM6EkWszDEekZ TCvQ== X-Forwarded-Encrypted: i=1; AJvYcCWx4K2hJf7PvDDP1FhjT0hSLFKsAAPl9nqtzLM+EFoHlwrRsXVYGFnmsN9qvwXQdCbYx2+Z38yTt3gnD4s=@vger.kernel.org X-Gm-Message-State: AOJu0YwiMk4B3Xu0EC7/1uQOpC7KB2u2HEULf2zB9njD5/PBpLiG1eF5 pTGKECTSljhG76QKoalIh6LY5BzAv3gO+GR5urnWQ++0XMX6ELMT0Ndgjd1w/XUyp/cYq9h/aqS Y2GjBpQ== X-Google-Smtp-Source: AGHT+IHv/UAQWGvMZg18IQGBREHAo4oLtmBMn3/lYMeAJT0+j2xg4O6aGjuI4OGKjSokpDwr/hXAwRIvxjY= X-Received: from pjbsg13.prod.google.com ([2002:a17:90b:520d:b0:2fe:800f:23a]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:1c01:b0:311:be51:bdf8 with SMTP id 98e67ed59e1d1-3124100c9eamr1909211a91.3.1748562031789; Thu, 29 May 2025 16:40:31 -0700 (PDT) Reply-To: Sean Christopherson Date: Thu, 29 May 2025 16:39:54 -0700 In-Reply-To: <20250529234013.3826933-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: <20250529234013.3826933-1-seanjc@google.com> X-Mailer: git-send-email 2.49.0.1204.g71687c7c1d-goog Message-ID: <20250529234013.3826933-10-seanjc@google.com> Subject: [PATCH 09/28] KVM: nSVM: Omit SEV-ES specific passthrough MSRs from L0+L1 bitmap merge From: Sean Christopherson To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Borislav Petkov , Xin Li , Chao Gao , Dapeng Mi Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Don't merge bitmaps on nested VMRUN for MSRs that KVM passes through only for SEV-ES guests. KVM doesn't support nested virtualization for SEV-ES, and likely never will. Signed-off-by: Sean Christopherson --- arch/x86/kvm/svm/nested.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/arch/x86/kvm/svm/nested.c b/arch/x86/kvm/svm/nested.c index e53020939e60..e4a079ea4b27 100644 --- a/arch/x86/kvm/svm/nested.c +++ b/arch/x86/kvm/svm/nested.c @@ -184,7 +184,7 @@ void recalc_intercepts(struct vcpu_svm *svm) } } =20 -static int nested_svm_msrpm_merge_offsets[9] __ro_after_init; +static int nested_svm_msrpm_merge_offsets[6] __ro_after_init; static int nested_svm_nr_msrpm_merge_offsets __ro_after_init; =20 int __init nested_svm_init_msrpm_merge_offsets(void) @@ -209,12 +209,6 @@ int __init nested_svm_init_msrpm_merge_offsets(void) MSR_IA32_LASTBRANCHTOIP, MSR_IA32_LASTINTFROMIP, MSR_IA32_LASTINTTOIP, - - MSR_IA32_XSS, - MSR_EFER, - MSR_IA32_CR_PAT, - MSR_AMD64_SEV_ES_GHCB, - MSR_TSC_AUX, }; int i, j; =20 --=20 2.49.0.1204.g71687c7c1d-goog