[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241011214353.1625057-4-jmattson@google.com>
Date: Fri, 11 Oct 2024 14:43:52 -0700
From: Jim Mattson <jmattson@...gle.com>
To: kvm@...r.kernel.org
Cc: bp@...en8.de, dave.hansen@...ux.intel.com, hpa@...or.com,
jpoimboe@...nel.org, kai.huang@...el.com, linux-kernel@...r.kernel.org,
mingo@...hat.com, pawan.kumar.gupta@...ux.intel.com, pbonzini@...hat.com,
sandipan.das@....com, seanjc@...gle.com, tglx@...utronix.de, x86@...nel.org,
Jim Mattson <jmattson@...gle.com>, Tom Lendacky <thomas.lendacky@....com>
Subject: [PATCH v5 3/4] KVM: x86: Advertise AMD_IBPB_RET to userspace
This is an inherent feature of IA32_PRED_CMD[0], so it is trivially
virtualizable (as long as IA32_PRED_CMD[0] is virtualized).
Suggested-by: Tom Lendacky <thomas.lendacky@....com>
Signed-off-by: Jim Mattson <jmattson@...gle.com>
Reviewed-by: Tom Lendacky <thomas.lendacky@....com>
Reviewed-by: Thomas Gleixner <tglx@...utronix.de>
---
arch/x86/kvm/cpuid.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/x86/kvm/cpuid.c b/arch/x86/kvm/cpuid.c
index 41786b834b16..53112669be00 100644
--- a/arch/x86/kvm/cpuid.c
+++ b/arch/x86/kvm/cpuid.c
@@ -755,7 +755,7 @@ void kvm_set_cpu_caps(void)
F(CLZERO) | F(XSAVEERPTR) |
F(WBNOINVD) | F(AMD_IBPB) | F(AMD_IBRS) | F(AMD_SSBD) | F(VIRT_SSBD) |
F(AMD_SSB_NO) | F(AMD_STIBP) | F(AMD_STIBP_ALWAYS_ON) |
- F(AMD_PSFD)
+ F(AMD_PSFD) | F(AMD_IBPB_RET)
);
/*
--
2.47.0.rc1.288.g06298d1525-goog
Powered by blists - more mailing lists