KVM: Enable ERMS feature support for KVM
authorYang, Wei <wei.y.yang@intel.com>
Tue, 14 Jun 2011 07:19:06 +0000 (15:19 +0800)
committerAvi Kivity <avi@redhat.com>
Tue, 12 Jul 2011 10:16:25 +0000 (13:16 +0300)
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>
arch/x86/kvm/x86.c

index 76c16a5c6c566c1ef5ed3decafc9c1251bce69f1..0b803f04bde71b62b9d62328a7e06f9d157f6577 100644 (file)
@@ -2372,7 +2372,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(FSGSBASE);
+               F(SMEP) | F(FSGSBASE) | F(ERMS);
 
        /* all calls to cpuid_count() should be made on the same cpu */
        get_cpu();