Lines Matching refs:emulation_type

8553 static int handle_emulation_failure(struct kvm_vcpu *vcpu, int emulation_type)  in handle_emulation_failure()  argument
8560 if (emulation_type & EMULTYPE_VMWARE_GP) { in handle_emulation_failure()
8566 (emulation_type & EMULTYPE_SKIP)) { in handle_emulation_failure()
8582 int emulation_type) in reexecute_instruction() argument
8587 if (!(emulation_type & EMULTYPE_ALLOW_RETRY_PF)) in reexecute_instruction()
8591 WARN_ON_ONCE(!(emulation_type & EMULTYPE_PF))) in reexecute_instruction()
8652 return !(emulation_type & EMULTYPE_WRITE_PF_TO_SP); in reexecute_instruction()
8656 gpa_t cr2_or_gpa, int emulation_type) in retry_instruction() argument
8679 if (!(emulation_type & EMULTYPE_ALLOW_RETRY_PF)) in retry_instruction()
8683 WARN_ON_ONCE(!(emulation_type & EMULTYPE_PF))) in retry_instruction()
8779 int emulation_type, int *r) in kvm_vcpu_check_code_breakpoint() argument
8781 WARN_ON_ONCE(emulation_type & EMULTYPE_NO_DECODE); in kvm_vcpu_check_code_breakpoint()
8797 if (emulation_type & (EMULTYPE_NO_DECODE | EMULTYPE_SKIP | in kvm_vcpu_check_code_breakpoint()
8877 int x86_decode_emulated_instruction(struct kvm_vcpu *vcpu, int emulation_type, in x86_decode_emulated_instruction() argument
8885 r = x86_decode_insn(ctxt, insn, insn_len, emulation_type); in x86_decode_emulated_instruction()
8895 int emulation_type, void *insn, int insn_len) in x86_emulate_instruction() argument
8901 if (unlikely(!kvm_can_emulate_insn(vcpu, emulation_type, insn, insn_len))) in x86_emulate_instruction()
8906 if (!(emulation_type & EMULTYPE_NO_DECODE)) { in x86_emulate_instruction()
8914 if (kvm_vcpu_check_code_breakpoint(vcpu, emulation_type, &r)) in x86_emulate_instruction()
8917 r = x86_decode_emulated_instruction(vcpu, emulation_type, in x86_emulate_instruction()
8920 if ((emulation_type & EMULTYPE_TRAP_UD) || in x86_emulate_instruction()
8921 (emulation_type & EMULTYPE_TRAP_UD_FORCED)) { in x86_emulate_instruction()
8926 emulation_type)) in x86_emulate_instruction()
8930 !(emulation_type & EMULTYPE_SKIP)) { in x86_emulate_instruction()
8940 return handle_emulation_failure(vcpu, emulation_type); in x86_emulate_instruction()
8944 if ((emulation_type & EMULTYPE_VMWARE_GP) && in x86_emulate_instruction()
8956 if (emulation_type & EMULTYPE_SKIP) { in x86_emulate_instruction()
8962 if (emulation_type & EMULTYPE_COMPLETE_USER_EXIT) { in x86_emulate_instruction()
8973 if (retry_instruction(ctxt, cr2_or_gpa, emulation_type)) in x86_emulate_instruction()
8984 if (emulation_type & EMULTYPE_PF) { in x86_emulate_instruction()
9004 if (reexecute_instruction(vcpu, cr2_or_gpa, emulation_type)) in x86_emulate_instruction()
9007 return handle_emulation_failure(vcpu, emulation_type); in x86_emulate_instruction()
9076 int kvm_emulate_instruction(struct kvm_vcpu *vcpu, int emulation_type) in kvm_emulate_instruction() argument
9078 return x86_emulate_instruction(vcpu, 0, emulation_type, NULL, 0); in kvm_emulate_instruction()