KVM: Enable "fast string operations" in MSR_IA32_MISC_ENABLE
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
@@ -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
Quoted 7 lines · Avi Kivity
Recent (3.0+) Linux guests check for the fast string bit in
MSR_IA32_MISC_ENABLEbefore enabling rep/movs based memcpy and related on fam 6/model 13+ processors.Enable the bit by default, as required by the specification.
Signed-off-by Avi Kivity <[email protected]>
Belongs to userspace.
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_ENABLEbefore enabling rep/movs based memcpy and related on fam 6/model 13+ processors.Enable the bit by default, as required by the specification.
Signed-off-by Avi Kivity<[email protected]>Belongs to userspace.
Right - patch coming up.
Signature · 1 line
error compiling committee.c: too many arguments to function