diff options
Diffstat (limited to 'drivers/kvm/kvm_main.c')
-rw-r--r-- | drivers/kvm/kvm_main.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/kvm/kvm_main.c b/drivers/kvm/kvm_main.c index 1c662f63b7a9..800ab5028ed3 100644 --- a/drivers/kvm/kvm_main.c +++ b/drivers/kvm/kvm_main.c | |||
@@ -1287,7 +1287,10 @@ int emulate_instruction(struct kvm_vcpu *vcpu, | |||
1287 | 1287 | ||
1288 | vcpu->mmio_is_write = 0; | 1288 | vcpu->mmio_is_write = 0; |
1289 | vcpu->pio.string = 0; | 1289 | vcpu->pio.string = 0; |
1290 | r = x86_emulate_memop(&emulate_ctxt, &emulate_ops); | 1290 | r = x86_decode_insn(&emulate_ctxt, &emulate_ops); |
1291 | if (r == 0) | ||
1292 | r = x86_emulate_insn(&emulate_ctxt, &emulate_ops); | ||
1293 | |||
1291 | if (vcpu->pio.string) | 1294 | if (vcpu->pio.string) |
1292 | return EMULATE_DO_MMIO; | 1295 | return EMULATE_DO_MMIO; |
1293 | 1296 | ||