diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2014-01-20 14:22:25 +0100 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-01-20 14:25:22 +0100 |
| commit | 439d19f2922ac409ee224bc1e5522cee7009d829 (patch) | |
| tree | 310d89b12fcaf8579c5c5555954fe92ffa77b116 | |
| parent | 584f2be79de148b0765a758ac0c1036a29c5e830 (diff) | |
| download | focaccia-qemu-439d19f2922ac409ee224bc1e5522cee7009d829.tar.gz focaccia-qemu-439d19f2922ac409ee224bc1e5522cee7009d829.zip | |
kvm: always update the MPX model specific register
The original patch from Liu Jinsong restricted them to reset or full state updates, but that's unnecessary (and wrong) since the BNDCFGS MSR has no side effects. Cc: Liu Jinsong <jinsong.liu@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
| -rw-r--r-- | target-i386/kvm.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 221c8a036e..d34981fd63 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -1161,6 +1161,9 @@ static int kvm_put_msrs(X86CPU *cpu, int level) kvm_msr_entry_set(&msrs[n++], MSR_IA32_MISC_ENABLE, env->msr_ia32_misc_enable); } + if (has_msr_bndcfgs) { + kvm_msr_entry_set(&msrs[n++], MSR_IA32_BNDCFGS, env->msr_bndcfgs); + } #ifdef TARGET_X86_64 if (lm_capable_kernel) { kvm_msr_entry_set(&msrs[n++], MSR_CSTAR, env->cstar); @@ -1224,9 +1227,6 @@ static int kvm_put_msrs(X86CPU *cpu, int level) if (cpu->hyperv_vapic) { kvm_msr_entry_set(&msrs[n++], HV_X64_MSR_APIC_ASSIST_PAGE, 0); } - if (has_msr_bndcfgs) { - kvm_msr_entry_set(&msrs[n++], MSR_IA32_BNDCFGS, env->msr_bndcfgs); - } /* Note: MSR_IA32_FEATURE_CONTROL is written separately, see * kvm_put_msr_feature_control. */ |