Message ID | 20240223202104.3330974-2-seanjc@google.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel+bounces-79093-ouuuleilei=gmail.com@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:a81b:b0:108:e6aa:91d0 with SMTP id bq27csp827453dyb; Fri, 23 Feb 2024 12:27:33 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCU3JHPfpxs3ZjX35XJxZQXjyIPeNiKR4Ye/TwRh8d8ez5Xebejb1ZaxIYFnuNp2nOSNE4VKlJxCYNh7ZKbJfK2E5QQzyQ== X-Google-Smtp-Source: AGHT+IGPmh+LoVQlKgqhfrRj/9onGnr0pFh/jrQuIU1moa37yQbLUQvPecg25bakSSJ4N4Y9w00x X-Received: by 2002:a17:902:9f88:b0:1dc:2d4d:45b6 with SMTP id g8-20020a1709029f8800b001dc2d4d45b6mr979829plq.2.1708720052819; Fri, 23 Feb 2024 12:27:32 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708720052; cv=pass; d=google.com; s=arc-20160816; b=iCtKRamHssEiGCD2KAHqvv0InzSMpZ/+UyIExehXNiEZEiAPRTXpZZ0fGq+SSC6Au4 ZuK6AvspVVKAaXKHaqbqrpNB5avFA9VKB2zIhdY0C4RBU4wK3rk/VKpzPi5zqKjGm+GE UK0L8p8iwyj8vtvmbic7r2Bvh7vGbRKyTqBKgq5G+7KpVwYZI7YYW41JrZLp0khu3er0 ier0Gx2kV3zWJLbKcEA5qE/uuJttBthrFXNYv8TETmRURm8cs7HOaEmrW5zISrfTfd9R nDdFDDNWF2w8vGGJzxfnyTa6fFz60CCd92UFq9m+ho3MU0g9eR47yVZElzd2o9hGA/Sb JA5w== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :reply-to:dkim-signature; bh=tyPTLCifBbTehT1oMnj3LiwEaJbfgbwYwJXO5JYENtY=; fh=Z9v6x5dJyo3ljyXDCMWYdbUpFr4ZKhWBvfdTmrZyIf4=; b=smi6jQ0kWkEq3To5yVz4Rg9W9fOJKeGg9jvNF38UItj/Uxx0IooigRC6ofhbyjRhj1 iY2hUlVK3gGvewDbJecSZc46iAAVI1/cqFhld5T7+xWIj1Cs25elg/eAKo82qOOMhwsZ NWDzbagY3NZ5oI7EQAOApW9SRQ9Zf+sxqQRNe3M2LgPTOO+PQ1MXmCT52PA9hILPU9TX u3kAazOD5Qd8JCa1TLLGiXisuX0xxXYIkPnaNK70jNh2aeo9sw79C9Hxv4zZb4C9fDDf KUZkzCT47ELZD3E8GDfgRBDO8f4ffnlx7wBez2mQ4pph18DhTeCcHJ/CEvcRLzpyCpci ib4Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="s9ot/QOo"; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-79093-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79093-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id e1-20020a17090301c100b001db2ad550d8si12753656plh.134.2024.02.23.12.27.32 for <ouuuleilei@gmail.com> (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 12:27:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79093-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b="s9ot/QOo"; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-79093-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79093-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 21659B27019 for <ouuuleilei@gmail.com>; Fri, 23 Feb 2024 20:22:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F1E8214CAC6; Fri, 23 Feb 2024 20:21:13 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="s9ot/QOo" Received: from mail-yw1-f201.google.com (mail-yw1-f201.google.com [209.85.128.201]) (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 930D4146E92 for <linux-kernel@vger.kernel.org>; Fri, 23 Feb 2024 20:21:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708719671; cv=none; b=TbIHNaDb3Un+mJdehxRNp8OJ+fjvKm0n2GxXNp7Iey2FghWiGV+4YGdp7BRn1qDEfzlnjECvKVUnsmwM6/XWkd/6Jwk0mQ6cU3RQrzkr/tR8Fxyw9rPF0jimsEDsvsppjbI0Q6YzoSkGTgTJLHK7MUvyJ0P3fk2AzTNHKw7ST7A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708719671; c=relaxed/simple; bh=IrRclgLzERlFlNP3VGcOQL+Anfa9GPiQX9sm7E4iwZk=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=HvM2ezIPLN9eAeWbSKxiaWlJS/MiVwetMEp+6OE4Nol06ClEAU5s23J/n51De0c6LHGnWzjcslr3VFgEZ8F6uHXMbvX5d9RhWdNybiLxH2SWVTn+LminzFUCyxcF3jaYR4yIGb5l/i1o3ho+eWxXCMmGN3waDbbGnBmpWP9h798= 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=s9ot/QOo; arc=none smtp.client-ip=209.85.128.201 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 Received: by mail-yw1-f201.google.com with SMTP id 00721157ae682-6047a047f58so13176047b3.3 for <linux-kernel@vger.kernel.org>; Fri, 23 Feb 2024 12:21:09 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1708719668; x=1709324468; 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=tyPTLCifBbTehT1oMnj3LiwEaJbfgbwYwJXO5JYENtY=; b=s9ot/QOoa3Gfu8c/XqMU2eC8Y8M/mOM1VmZOxKhVJ7MX7yahmorYt8RghSP+suf3pq nIaILba5/ltROBxUv/YuZTHn74xfHGScNNp18IC0sqB5XkemZ7l6oOOqlOIGiThvSmWQ w/jZvmWnQ94y6AqDtToVqLQ9hLvPtBjUoy8+iZR7WkF9QpR3fMvsJIDsXwPlhCA0Toz3 FO/XbB8cBJIHHrzNRL3PIuE8oS1SrSwGyzrdVchZPaKwJzxoyYdCTEeZUuBR5qVYsrJE MXy9/3koG4Yec2yU14jBs0U6uRUh4sFjXKLIwihqmTlboOdNNlXl4maQmbSOSZ2V6Iph PpOg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708719668; x=1709324468; 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=tyPTLCifBbTehT1oMnj3LiwEaJbfgbwYwJXO5JYENtY=; b=s+qU/hrex9c03Yk9rQLoIR7pZEe8LekDbO0erHjd5LNUJPqxymeTnkfO+DOUsqR80a f+6IhZRyyONIbPvwF1m5aHmE8Rp0lRHJpT040h6GzmKKvqhdHwX1o4wB0Dj3MOJR4lDZ bEiyMknixl3lNnYcNUA7ruHATdQ/711TFj8tXpJ63vq2d1+ot7HBzyF+diu3rNB0cDch BqgerfM/hW6W2+XhoSuJVtacJ9fM37R7LKo2lpqWafuOQ6Y148/a/gRj1KiUy91+Vckc GZ8WWtH5NLDx8BlAOVB3q3JLnrll8JTzWvfzHsP7yLDgrEAOvRNiLXvnR7orEeZRJgH/ PXjw== X-Forwarded-Encrypted: i=1; AJvYcCUb70+DNykgfW96ueF++MWMBo5WnERwH20jAES6vV4MVUN2/sHEGrWc7GWsUqtcy10i2dQM/9f6tl2jhbRtRiiHH+cfYjCtoeDFZ/9J X-Gm-Message-State: AOJu0Yztg4f7/S+Lc2Y8QuPMvlSYPjpXipmOQ8YWkFEHuFvZKZkv33R2 WmYQLOgMXk0LyZUdep4tD6Q6gIBa/ZPQivN9yPNLMH9GszefyvFwYgaOqgM7SZfnhQMNIP4XCuH 1ZQ== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a25:5189:0:b0:dc6:d3c0:ebe0 with SMTP id f131-20020a255189000000b00dc6d3c0ebe0mr239480ybb.0.1708719668602; Fri, 23 Feb 2024 12:21:08 -0800 (PST) Reply-To: Sean Christopherson <seanjc@google.com> Date: Fri, 23 Feb 2024 12:21:02 -0800 In-Reply-To: <20240223202104.3330974-1-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: <linux-kernel.vger.kernel.org> List-Subscribe: <mailto:linux-kernel+subscribe@vger.kernel.org> List-Unsubscribe: <mailto:linux-kernel+unsubscribe@vger.kernel.org> Mime-Version: 1.0 References: <20240223202104.3330974-1-seanjc@google.com> X-Mailer: git-send-email 2.44.0.rc0.258.g7320e95886-goog Message-ID: <20240223202104.3330974-2-seanjc@google.com> Subject: [PATCH v2 1/3] KVM: VMX: fix comment to add LBR to passthrough MSRs From: Sean Christopherson <seanjc@google.com> To: Sean Christopherson <seanjc@google.com>, Paolo Bonzini <pbonzini@redhat.com> Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Dongli Zhang <dongli.zhang@oracle.com> Content-Type: text/plain; charset="UTF-8" X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1791722838546682434 X-GMAIL-MSGID: 1791722838546682434 |
Series |
KVM: VMX: MSR intercept/passthrough cleanup and simplification
|
|
Commit Message
Sean Christopherson
Feb. 23, 2024, 8:21 p.m. UTC
From: Dongli Zhang <dongli.zhang@oracle.com> According to the is_valid_passthrough_msr(), the LBR MSRs are also passthrough MSRs, since the commit 1b5ac3226a1a ("KVM: vmx/pmu: Pass-through LBR msrs when the guest LBR event is ACTIVE"). Signed-off-by: Dongli Zhang <dongli.zhang@oracle.com> Signed-off-by: Sean Christopherson <seanjc@google.com> --- arch/x86/kvm/vmx/vmx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kvm/vmx/vmx.c b/arch/x86/kvm/vmx/vmx.c index 9239a89dea22..7470a7fb1014 100644 --- a/arch/x86/kvm/vmx/vmx.c +++ b/arch/x86/kvm/vmx/vmx.c @@ -159,7 +159,7 @@ module_param(allow_smaller_maxphyaddr, bool, S_IRUGO); /* * List of MSRs that can be directly passed to the guest. - * In addition to these x2apic and PT MSRs are handled specially. + * In addition to these x2apic, PT and LBR MSRs are handled specially. */ static u32 vmx_possible_passthrough_msrs[MAX_POSSIBLE_PASSTHROUGH_MSRS] = { MSR_IA32_SPEC_CTRL,