All of lore.kernel.org
 help / color / mirror / Atom feed
* [MODERATED] [PATCH 2/2] Guest L1D flush
@ 2018-08-08 19:15 Jim Mattson
  2018-08-08 21:21 ` [MODERATED] " Konrad Rzeszutek Wilk
  0 siblings, 1 reply; 4+ messages in thread
From: Jim Mattson @ 2018-08-08 19:15 UTC (permalink / raw)
  To: speck

[patch 2/2] kvm: x86: Expose X86_FEATURE_FLUSH_L1D to kvm guests

If this feature is available on the host, it can be exposed to a kvm
guest.

Signed-off-by: Jim Mattson <jmattson@google.com>
Reviewed-by: Ben Serebrin <serebrin@google.com>
Reviewed-by: Peter Shier <pshier@google.com>
---
 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 7e042e3d47fd5..2a62270d82b69 100644
--- a/arch/x86/kvm/cpuid.c
+++ b/arch/x86/kvm/cpuid.c
@@ -411,7 +411,7 @@ static inline int __do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,
 	/* cpuid 7.0.edx*/
 	const u32 kvm_cpuid_7_0_edx_x86_features =
 		F(AVX512_4VNNIW) | F(AVX512_4FMAPS) | F(SPEC_CTRL) |
-		F(SPEC_CTRL_SSBD) | F(ARCH_CAPABILITIES);
+		F(SPEC_CTRL_SSBD) | F(FLUSH_L1D) | F(ARCH_CAPABILITIES);
 
 	/* all calls to cpuid_count() should be made on the same cpu */
 	get_cpu();
-- 
2.18.0.597.ga71716f1ad-goog

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-08-08 23:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-08-08 19:15 [MODERATED] [PATCH 2/2] Guest L1D flush Jim Mattson
2018-08-08 21:21 ` [MODERATED] " Konrad Rzeszutek Wilk
2018-08-08 22:20   ` Jim Mattson
2018-08-08 23:04     ` Andrew Cooper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.