public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Enable ERMS feature support for KVM
@ 2011-06-14  7:19 Yang, Wei
  2011-06-14 12:43 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Yang, Wei @ 2011-06-14  7:19 UTC (permalink / raw)
  To: avi; +Cc: kvm, Yang, Wei

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>

---
 arch/x86/kvm/x86.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index ff4623b..21fd313 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -2361,7 +2361,7 @@ static void do_cpuid_ent(struct kvm_cpuid_entry2 *entry, u32 function,
 
 	/* cpuid 7.0.ebx */
 	const u32 kvm_supported_word9_x86_features =
-		F(SMEP);
+		F(SMEP) | F(ERMS);
 
 	/* all calls to cpuid_count() should be made on the same cpu */
 	get_cpu();
-- 
1.7.1


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

end of thread, other threads:[~2011-06-14 12:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-14  7:19 [PATCH] Enable ERMS feature support for KVM Yang, Wei
2011-06-14 12:43 ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox