|
@@ -1238,7 +1238,7 @@ enum emulation_result {
|
|
|
#define EMULTYPE_TRAP_UD (1 << 1)
|
|
|
#define EMULTYPE_SKIP (1 << 2)
|
|
|
#define EMULTYPE_RETRY (1 << 3)
|
|
|
-#define EMULTYPE_NO_REEXECUTE (1 << 4)
|
|
|
+#define EMULTYPE_ALLOW_REEXECUTE (1 << 4)
|
|
|
#define EMULTYPE_NO_UD_ON_FAIL (1 << 5)
|
|
|
#define EMULTYPE_VMWARE (1 << 6)
|
|
|
int x86_emulate_instruction(struct kvm_vcpu *vcpu, unsigned long cr2,
|
|
@@ -1247,15 +1247,13 @@ int x86_emulate_instruction(struct kvm_vcpu *vcpu, unsigned long cr2,
|
|
|
static inline int emulate_instruction(struct kvm_vcpu *vcpu,
|
|
|
int emulation_type)
|
|
|
{
|
|
|
- return x86_emulate_instruction(vcpu, 0,
|
|
|
- emulation_type | EMULTYPE_NO_REEXECUTE, NULL, 0);
|
|
|
+ return x86_emulate_instruction(vcpu, 0, emulation_type, NULL, 0);
|
|
|
}
|
|
|
|
|
|
static inline int kvm_emulate_instruction_from_buffer(struct kvm_vcpu *vcpu,
|
|
|
void *insn, int insn_len)
|
|
|
{
|
|
|
- return x86_emulate_instruction(vcpu, 0, EMULTYPE_NO_REEXECUTE,
|
|
|
- insn, insn_len);
|
|
|
+ return x86_emulate_instruction(vcpu, 0, 0, insn, insn_len);
|
|
|
}
|
|
|
|
|
|
void kvm_enable_efer_bits(u64);
|