KVM: x86 emulator: Add new mode of instruction emulation: skip
In the new mode instruction is decoded, but not executed. The EIP is moved to point after the instruction. Signed-off-by: Gleb Natapov <gleb@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:

gecommit door
Avi Kivity

bovenliggende
e637b8238a
commit
ba8afb6b0a
@@ -2413,6 +2413,11 @@ int emulate_instruction(struct kvm_vcpu *vcpu,
|
||||
}
|
||||
}
|
||||
|
||||
if (emulation_type & EMULTYPE_SKIP) {
|
||||
kvm_rip_write(vcpu, vcpu->arch.emulate_ctxt.decode.eip);
|
||||
return EMULATE_DONE;
|
||||
}
|
||||
|
||||
r = x86_emulate_insn(&vcpu->arch.emulate_ctxt, &emulate_ops);
|
||||
|
||||
if (vcpu->arch.pio.string)
|
||||
|
Verwijs in nieuw issue
Block a user