Skip to contentSkip to conversation

KVM: Enable "fast string operations" in MSR_IA32_MISC_ENABLE

PATCH In review Avi Kivity 2 participants 3 messages Sep 22, 2011 – Oct 4, 2011

Subsystems (3)
lore
Share & tools
lore

Avi Kivity

author
#0 lore raw

PATCH 1/1 KVM: Enable "fast string operations" in MSR_IA32_MISC_ENABLE

Recent (3.0+) Linux guests check for the fast string bit in MSR_IA32_MISC_ENABLE before enabling rep/movs based memcpy and related on fam 6/model 13+ processors.

Enable the bit by default, as required by the specification.

---
 arch/x86/kvm/x86.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
arch/x86/kvm/x86.c +2 -0
index 6b37f18..459f2bf 100644
@@ -6374,6 +6374,8 @@ void kvm_arch_vcpu_destroy(struct kvm_vcpu *vcpu)
 
 int kvm_arch_vcpu_reset(struct kvm_vcpu *vcpu)
 {
+	vcpu->arch.ia32_misc_enable_msr = MSR_IA32_MISC_ENABLE_FAST_STRING;
+
 	vcpu->arch.nmi_pending = false;
 	vcpu->arch.nmi_injected = false;
 
Signature · 1 line
1.7.6.3
#1 lore raw
Quoted 7 lines · Avi Kivity

Recent (3.0+) Linux guests check for the fast string bit in MSR_IA32_MISC_ENABLE before enabling rep/movs based memcpy and related on fam 6/model 13+ processors.

Enable the bit by default, as required by the specification.

Belongs to userspace.

author
#2 lore raw
Quoted 11 lines · Marcelo Tosatti
Quoted 7 lines · Avi Kivity

Recent (3.0+) Linux guests check for the fast string bit in MSR_IA32_MISC_ENABLE before enabling rep/movs based memcpy and related on fam 6/model 13+ processors.

Enable the bit by default, as required by the specification.

Belongs to userspace.

Right - patch coming up.

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