diff options
Diffstat (limited to 'drivers/kvm/vmx.c')
-rw-r--r-- | drivers/kvm/vmx.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c index 096cb6a1e899..b353eaa0a441 100644 --- a/drivers/kvm/vmx.c +++ b/drivers/kvm/vmx.c | |||
@@ -600,7 +600,8 @@ static int vmx_set_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 data) | |||
600 | msr = find_msr_entry(vcpu, msr_index); | 600 | msr = find_msr_entry(vcpu, msr_index); |
601 | if (msr) | 601 | if (msr) |
602 | msr->data = data; | 602 | msr->data = data; |
603 | load_msrs(vcpu->guest_msrs, NR_BAD_MSRS); | 603 | if (vcpu->vmx_host_state.loaded) |
604 | load_msrs(vcpu->guest_msrs, NR_BAD_MSRS); | ||
604 | break; | 605 | break; |
605 | #endif | 606 | #endif |
606 | case MSR_IA32_SYSENTER_CS: | 607 | case MSR_IA32_SYSENTER_CS: |