* [PATCH] KVM: x86: Expose fast short REP MOV for supported cpuid
@ 2020-03-23 9:22 Zhenyu Wang
2020-03-23 12:58 ` Paolo Bonzini
0 siblings, 1 reply; 2+ messages in thread
From: Zhenyu Wang @ 2020-03-23 9:22 UTC (permalink / raw)
To: pbonzini; +Cc: kvm, linux-kernel
For CPU supporting fast short REP MOV (XF86_FEATURE_FSRM) e.g Icelake,
Tigerlake, expose it in KVM supported cpuid as well.
Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.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 435a7da07d5f..cf6da12bd17a 100644
--- a/arch/x86/kvm/cpuid.c
+++ b/arch/x86/kvm/cpuid.c
@@ -338,7 +338,7 @@ void kvm_set_cpu_caps(void)
kvm_cpu_cap_mask(CPUID_7_EDX,
F(AVX512_4VNNIW) | F(AVX512_4FMAPS) | F(SPEC_CTRL) |
F(SPEC_CTRL_SSBD) | F(ARCH_CAPABILITIES) | F(INTEL_STIBP) |
- F(MD_CLEAR) | F(AVX512_VP2INTERSECT)
+ F(MD_CLEAR) | F(AVX512_VP2INTERSECT) | F(FSRM)
);
/* TSC_ADJUST and ARCH_CAPABILITIES are emulated in software. */
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] KVM: x86: Expose fast short REP MOV for supported cpuid
2020-03-23 9:22 [PATCH] KVM: x86: Expose fast short REP MOV for supported cpuid Zhenyu Wang
@ 2020-03-23 12:58 ` Paolo Bonzini
0 siblings, 0 replies; 2+ messages in thread
From: Paolo Bonzini @ 2020-03-23 12:58 UTC (permalink / raw)
To: Zhenyu Wang; +Cc: kvm, linux-kernel
On 23/03/20 10:22, Zhenyu Wang wrote:
> For CPU supporting fast short REP MOV (XF86_FEATURE_FSRM) e.g Icelake,
> Tigerlake, expose it in KVM supported cpuid as well.
>
> Signed-off-by: Zhenyu Wang <zhenyuw@linux.intel.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 435a7da07d5f..cf6da12bd17a 100644
> --- a/arch/x86/kvm/cpuid.c
> +++ b/arch/x86/kvm/cpuid.c
> @@ -338,7 +338,7 @@ void kvm_set_cpu_caps(void)
> kvm_cpu_cap_mask(CPUID_7_EDX,
> F(AVX512_4VNNIW) | F(AVX512_4FMAPS) | F(SPEC_CTRL) |
> F(SPEC_CTRL_SSBD) | F(ARCH_CAPABILITIES) | F(INTEL_STIBP) |
> - F(MD_CLEAR) | F(AVX512_VP2INTERSECT)
> + F(MD_CLEAR) | F(AVX512_VP2INTERSECT) | F(FSRM)
> );
>
> /* TSC_ADJUST and ARCH_CAPABILITIES are emulated in software. */
>
Queued, thanks.
Paolo
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-03-23 12:59 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-23 9:22 [PATCH] KVM: x86: Expose fast short REP MOV for supported cpuid Zhenyu Wang
2020-03-23 12:58 ` Paolo Bonzini
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).