Lines Matching defs:emulation_type

8809 static int handle_emulation_failure(struct kvm_vcpu *vcpu, int emulation_type)
8816 if (emulation_type & EMULTYPE_VMWARE_GP) {
8822 (emulation_type & EMULTYPE_SKIP)) {
8838 int emulation_type)
8843 if (!(emulation_type & EMULTYPE_ALLOW_RETRY_PF))
8847 WARN_ON_ONCE(!(emulation_type & EMULTYPE_PF)))
8901 return !(emulation_type & EMULTYPE_WRITE_PF_TO_SP);
8905 gpa_t cr2_or_gpa, int emulation_type)
8928 if (!(emulation_type & EMULTYPE_ALLOW_RETRY_PF))
8932 WARN_ON_ONCE(!(emulation_type & EMULTYPE_PF)))
9028 int emulation_type, int *r)
9030 WARN_ON_ONCE(emulation_type & EMULTYPE_NO_DECODE);
9046 if (emulation_type & (EMULTYPE_NO_DECODE | EMULTYPE_SKIP |
9126 int x86_decode_emulated_instruction(struct kvm_vcpu *vcpu, int emulation_type,
9134 r = x86_decode_insn(ctxt, insn, insn_len, emulation_type);
9144 int emulation_type, void *insn, int insn_len)
9150 r = kvm_check_emulate_insn(vcpu, emulation_type, insn, insn_len);
9156 return handle_emulation_failure(vcpu, emulation_type);
9161 if (!(emulation_type & EMULTYPE_NO_DECODE)) {
9169 if (kvm_vcpu_check_code_breakpoint(vcpu, emulation_type, &r))
9172 r = x86_decode_emulated_instruction(vcpu, emulation_type,
9175 if ((emulation_type & EMULTYPE_TRAP_UD) ||
9176 (emulation_type & EMULTYPE_TRAP_UD_FORCED)) {
9181 emulation_type))
9185 !(emulation_type & EMULTYPE_SKIP)) {
9195 return handle_emulation_failure(vcpu, emulation_type);
9199 if ((emulation_type & EMULTYPE_VMWARE_GP) &&
9211 if (emulation_type & EMULTYPE_SKIP) {
9217 if (emulation_type & EMULTYPE_COMPLETE_USER_EXIT) {
9228 if (retry_instruction(ctxt, cr2_or_gpa, emulation_type))
9239 if (emulation_type & EMULTYPE_PF) {
9259 if (reexecute_instruction(vcpu, cr2_or_gpa, emulation_type))
9262 return handle_emulation_failure(vcpu, emulation_type);
9331 int kvm_emulate_instruction(struct kvm_vcpu *vcpu, int emulation_type)
9333 return x86_emulate_instruction(vcpu, 0, emulation_type, NULL, 0);