Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp78497rbb; Fri, 23 Feb 2024 12:22:25 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCXBCs6xWs+FLl/6OaY6u7hnixl9jeF6A/y0NJ6ijlMeM6zknFZErbUfRzs7cwImNENgqI6I6FGhnB2/Xdc2YePC++9vChgxs6v6udTBMg== X-Google-Smtp-Source: AGHT+IHgjVsOsZS477MPaejMmpC4I8fltbuzUgr+w4IhXY2nSyJ2uOmJ04kSJJ9gWjD5B1hXX49k X-Received: by 2002:a05:6a21:3a44:b0:19e:99ce:6f99 with SMTP id zu4-20020a056a213a4400b0019e99ce6f99mr1318557pzb.44.1708719745490; Fri, 23 Feb 2024 12:22:25 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708719745; cv=pass; d=google.com; s=arc-20160816; b=lmdoqQTENVWzicXTt1s3WdeP52+ADgbTqCXsC621s8NX4+SCFWmQbsWyMjhZpwxVJY j9vvgA7UrCS8rT1FG0XeHnUduV92lzg6PXkY6tzKVHg3HdTCaB8fPcp9PLNyBrbGAlaN GCPxabX8gAXt/eHECbQhmoaiY+7s0W6sx/fLuo52j+UUmt0sF8LDu1tOKaT3PIarpDIQ 0hX2pzvBCy+/FMr0dTDnssO6X/BT34gxxYsY023joOd0mVaJdzUtFvzolLmK4YUzQwb3 CXWSxWbI9h0+ogBX99II7mbPkaHDCobt0LCs4yfMtrbGWkkULV7zOdQIbU8Oo/gxEYZD +Paw== 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79093-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id ll9-20020a056a00728900b006de1e26adb5si12309320pfb.275.2024.02.23.12.22.25 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 23 Feb 2024 12:22:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-79093-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-79093-linux.lists.archive=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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 22B59284948 for ; Fri, 23 Feb 2024 20:22:25 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1C0381493B4; Fri, 23 Feb 2024 20:21:12 +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 ; 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 ; 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 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: List-Subscribe: List-Unsubscribe: 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 To: Sean Christopherson , Paolo Bonzini Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Dongli Zhang Content-Type: text/plain; charset="UTF-8" From: Dongli Zhang 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 Signed-off-by: Sean Christopherson --- 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, -- 2.44.0.rc0.258.g7320e95886-goog