aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
authorYang, Wei <wei.y.yang@intel.com>2011-06-14 03:19:06 -0400
committerAvi Kivity <avi@redhat.com>2011-07-12 06:16:25 -0400
commita01c8f9b4e266df1d7166d23216f2060648f862d (patch)
tree9f1255015b195cc96a8e88da5a1bee1300a541ed /arch/x86
parent176f61da82435eae09cc96f70b530d1ba0746b8b (diff)
KVM: Enable ERMS feature support for KVM
This patch exposes ERMS feature to KVM guests. The REP MOVSB/STOSB instruction can enhance fast strings attempts to move as much of the data with larger size load/stores as possible. Signed-off-by: Yang, Wei <wei.y.yang@intel.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kvm/x86.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 76c16a5c6c56..0b803f04bde7 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -2372,7 +2372,7 @@ static void do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,
2372 2372
2373 /* cpuid 7.0.ebx */ 2373 /* cpuid 7.0.ebx */
2374 const u32 kvm_supported_word9_x86_features = 2374 const u32 kvm_supported_word9_x86_features =
2375 F(SMEP) | F(FSGSBASE); 2375 F(SMEP) | F(FSGSBASE) | F(ERMS);
2376 2376
2377 /* all calls to cpuid_count() should be made on the same cpu */ 2377 /* all calls to cpuid_count() should be made on the same cpu */
2378 get_cpu(); 2378 get_cpu();