Skip to contentSkip to conversation

Enable ERMS feature support for KVM

PATCH Applied Yang, Wei 2 participants 2 messages Jun 14, 2011

Subsystems (3)
lore
Share & tools
lore

Yang, Wei

author
#0 lore raw

PATCH 1/1 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.

---
 arch/x86/kvm/x86.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/x86/kvm/x86.c +1 -1
index ff4623b..21fd313 100644
@@ -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();
Signature · 1 line
1.7.1
Applied
#1 lore raw
Quoted 5 lines · 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.

Applied, thanks.

Signature · 1 line
error compiling committee.c: too many arguments to function