diff options
Diffstat (limited to 'drivers/kvm/x86_emulate.c')
-rw-r--r-- | drivers/kvm/x86_emulate.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/kvm/x86_emulate.c b/drivers/kvm/x86_emulate.c index 342594d78d8c..86171ca794dd 100644 --- a/drivers/kvm/x86_emulate.c +++ b/drivers/kvm/x86_emulate.c | |||
@@ -1432,7 +1432,7 @@ twobyte_special_insn: | |||
1432 | | ((u64)_regs[VCPU_REGS_RDX] << 32); | 1432 | | ((u64)_regs[VCPU_REGS_RDX] << 32); |
1433 | rc = kvm_set_msr(ctxt->vcpu, _regs[VCPU_REGS_RCX], msr_data); | 1433 | rc = kvm_set_msr(ctxt->vcpu, _regs[VCPU_REGS_RCX], msr_data); |
1434 | if (rc) { | 1434 | if (rc) { |
1435 | kvm_arch_ops->inject_gp(ctxt->vcpu, 0); | 1435 | kvm_x86_ops->inject_gp(ctxt->vcpu, 0); |
1436 | _eip = ctxt->vcpu->rip; | 1436 | _eip = ctxt->vcpu->rip; |
1437 | } | 1437 | } |
1438 | rc = X86EMUL_CONTINUE; | 1438 | rc = X86EMUL_CONTINUE; |
@@ -1441,7 +1441,7 @@ twobyte_special_insn: | |||
1441 | /* rdmsr */ | 1441 | /* rdmsr */ |
1442 | rc = kvm_get_msr(ctxt->vcpu, _regs[VCPU_REGS_RCX], &msr_data); | 1442 | rc = kvm_get_msr(ctxt->vcpu, _regs[VCPU_REGS_RCX], &msr_data); |
1443 | if (rc) { | 1443 | if (rc) { |
1444 | kvm_arch_ops->inject_gp(ctxt->vcpu, 0); | 1444 | kvm_x86_ops->inject_gp(ctxt->vcpu, 0); |
1445 | _eip = ctxt->vcpu->rip; | 1445 | _eip = ctxt->vcpu->rip; |
1446 | } else { | 1446 | } else { |
1447 | _regs[VCPU_REGS_RAX] = (u32)msr_data; | 1447 | _regs[VCPU_REGS_RAX] = (u32)msr_data; |