Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755710AbeAIMFQ (ORCPT + 1 other); Tue, 9 Jan 2018 07:05:16 -0500 Received: from mail-wr0-f194.google.com ([209.85.128.194]:43168 "EHLO mail-wr0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753951AbeAIMDY (ORCPT ); Tue, 9 Jan 2018 07:03:24 -0500 X-Google-Smtp-Source: ACJfBoucDlyF4+0guH3PHw6LCRYTturAQIOAICZGi1BsubnG3VG3yEvvFazspSTQwbudj/pZoGJGww== From: Paolo Bonzini To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: rkrcmar@redhat.com, liran.alon@oracle.com, jmattson@google.com, aliguori@amazon.com, thomas.lendacky@amd.com, dwmw@amazon.co.uk, bp@alien8.de, x86@kernel.org Subject: [PATCH 5/8] KVM: SVM: fix comment Date: Tue, 9 Jan 2018 13:03:07 +0100 Message-Id: <20180109120311.27565-6-pbonzini@redhat.com> X-Mailer: git-send-email 2.14.3 In-Reply-To: <20180109120311.27565-1-pbonzini@redhat.com> References: <20180109120311.27565-1-pbonzini@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: If always==true, then read/write bits are cleared from the MSR permission bitmap, thus passing-through the MSR. Fix the comment to match reality. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/svm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 55dde3896898..31ace8d7774a 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c @@ -236,7 +236,7 @@ struct amd_svm_iommu_ir { static const struct svm_direct_access_msrs { u32 index; /* Index of the MSR */ - bool always; /* True if intercept is always on */ + bool always; /* True if intercept is always off */ } direct_access_msrs[] = { { .index = MSR_STAR, .always = true }, { .index = MSR_IA32_SYSENTER_CS, .always = true }, -- 1.8.3.1