Lines Matching refs:exception

469 	unsigned nr = vcpu->arch.exception.nr;  in kvm_deliver_exception_payload()
470 bool has_payload = vcpu->arch.exception.has_payload; in kvm_deliver_exception_payload()
471 unsigned long payload = vcpu->arch.exception.payload; in kvm_deliver_exception_payload()
512 vcpu->arch.exception.has_payload = false; in kvm_deliver_exception_payload()
513 vcpu->arch.exception.payload = 0; in kvm_deliver_exception_payload()
526 if (!vcpu->arch.exception.pending && !vcpu->arch.exception.injected) { in kvm_multiple_exception()
539 WARN_ON_ONCE(vcpu->arch.exception.pending); in kvm_multiple_exception()
540 vcpu->arch.exception.injected = true; in kvm_multiple_exception()
550 vcpu->arch.exception.pending = true; in kvm_multiple_exception()
551 vcpu->arch.exception.injected = false; in kvm_multiple_exception()
553 vcpu->arch.exception.has_error_code = has_error; in kvm_multiple_exception()
554 vcpu->arch.exception.nr = nr; in kvm_multiple_exception()
555 vcpu->arch.exception.error_code = error_code; in kvm_multiple_exception()
556 vcpu->arch.exception.has_payload = has_payload; in kvm_multiple_exception()
557 vcpu->arch.exception.payload = payload; in kvm_multiple_exception()
564 prev_nr = vcpu->arch.exception.nr; in kvm_multiple_exception()
579 vcpu->arch.exception.pending = true; in kvm_multiple_exception()
580 vcpu->arch.exception.injected = false; in kvm_multiple_exception()
581 vcpu->arch.exception.has_error_code = true; in kvm_multiple_exception()
582 vcpu->arch.exception.nr = DF_VECTOR; in kvm_multiple_exception()
583 vcpu->arch.exception.error_code = 0; in kvm_multiple_exception()
584 vcpu->arch.exception.has_payload = false; in kvm_multiple_exception()
585 vcpu->arch.exception.payload = 0; in kvm_multiple_exception()
633 vcpu->arch.exception.nested_apf = in kvm_inject_page_fault()
635 if (vcpu->arch.exception.nested_apf) { in kvm_inject_page_fault()
719 struct x86_exception exception; in kvm_read_guest_page_mmu() local
724 real_gfn = mmu->translate_gpa(vcpu, ngpa, access, &exception); in kvm_read_guest_page_mmu()
4214 vcpu->arch.exception.pending && vcpu->arch.exception.has_payload) in kvm_vcpu_ioctl_x86_get_vcpu_events()
4223 if (kvm_exception_is_soft(vcpu->arch.exception.nr)) { in kvm_vcpu_ioctl_x86_get_vcpu_events()
4224 events->exception.injected = 0; in kvm_vcpu_ioctl_x86_get_vcpu_events()
4225 events->exception.pending = 0; in kvm_vcpu_ioctl_x86_get_vcpu_events()
4227 events->exception.injected = vcpu->arch.exception.injected; in kvm_vcpu_ioctl_x86_get_vcpu_events()
4228 events->exception.pending = vcpu->arch.exception.pending; in kvm_vcpu_ioctl_x86_get_vcpu_events()
4235 events->exception.injected |= in kvm_vcpu_ioctl_x86_get_vcpu_events()
4236 vcpu->arch.exception.pending; in kvm_vcpu_ioctl_x86_get_vcpu_events()
4238 events->exception.nr = vcpu->arch.exception.nr; in kvm_vcpu_ioctl_x86_get_vcpu_events()
4239 events->exception.has_error_code = vcpu->arch.exception.has_error_code; in kvm_vcpu_ioctl_x86_get_vcpu_events()
4240 events->exception.error_code = vcpu->arch.exception.error_code; in kvm_vcpu_ioctl_x86_get_vcpu_events()
4241 events->exception_has_payload = vcpu->arch.exception.has_payload; in kvm_vcpu_ioctl_x86_get_vcpu_events()
4242 events->exception_payload = vcpu->arch.exception.payload; in kvm_vcpu_ioctl_x86_get_vcpu_events()
4287 if (events->exception.pending) in kvm_vcpu_ioctl_x86_set_vcpu_events()
4288 events->exception.injected = 0; in kvm_vcpu_ioctl_x86_set_vcpu_events()
4292 events->exception.pending = 0; in kvm_vcpu_ioctl_x86_set_vcpu_events()
4296 if ((events->exception.injected || events->exception.pending) && in kvm_vcpu_ioctl_x86_set_vcpu_events()
4297 (events->exception.nr > 31 || events->exception.nr == NMI_VECTOR)) in kvm_vcpu_ioctl_x86_set_vcpu_events()
4307 vcpu->arch.exception.injected = events->exception.injected; in kvm_vcpu_ioctl_x86_set_vcpu_events()
4308 vcpu->arch.exception.pending = events->exception.pending; in kvm_vcpu_ioctl_x86_set_vcpu_events()
4309 vcpu->arch.exception.nr = events->exception.nr; in kvm_vcpu_ioctl_x86_set_vcpu_events()
4310 vcpu->arch.exception.has_error_code = events->exception.has_error_code; in kvm_vcpu_ioctl_x86_set_vcpu_events()
4311 vcpu->arch.exception.error_code = events->exception.error_code; in kvm_vcpu_ioctl_x86_set_vcpu_events()
4312 vcpu->arch.exception.has_payload = events->exception_has_payload; in kvm_vcpu_ioctl_x86_set_vcpu_events()
4313 vcpu->arch.exception.payload = events->exception_payload; in kvm_vcpu_ioctl_x86_set_vcpu_events()
5852 struct x86_exception *exception) in translate_nested_gpa() argument
5860 t_gpa = vcpu->arch.mmu->gva_to_gpa(vcpu, gpa, access, exception); in translate_nested_gpa()
5866 struct x86_exception *exception) in kvm_mmu_gva_to_gpa_read() argument
5869 return vcpu->arch.walk_mmu->gva_to_gpa(vcpu, gva, access, exception); in kvm_mmu_gva_to_gpa_read()
5873 struct x86_exception *exception) in kvm_mmu_gva_to_gpa_fetch() argument
5877 return vcpu->arch.walk_mmu->gva_to_gpa(vcpu, gva, access, exception); in kvm_mmu_gva_to_gpa_fetch()
5881 struct x86_exception *exception) in kvm_mmu_gva_to_gpa_write() argument
5885 return vcpu->arch.walk_mmu->gva_to_gpa(vcpu, gva, access, exception); in kvm_mmu_gva_to_gpa_write()
5890 struct x86_exception *exception) in kvm_mmu_gva_to_gpa_system() argument
5892 return vcpu->arch.walk_mmu->gva_to_gpa(vcpu, gva, 0, exception); in kvm_mmu_gva_to_gpa_system()
5897 struct x86_exception *exception) in kvm_read_guest_virt_helper() argument
5904 exception); in kvm_read_guest_virt_helper()
5929 struct x86_exception *exception) in kvm_fetch_guest_virt() argument
5938 exception); in kvm_fetch_guest_virt()
5955 struct x86_exception *exception) in kvm_read_guest_virt() argument
5965 memset(exception, 0, sizeof(*exception)); in kvm_read_guest_virt()
5967 exception); in kvm_read_guest_virt()
5973 struct x86_exception *exception, bool system) in emulator_read_std() argument
5981 return kvm_read_guest_virt_helper(addr, val, bytes, vcpu, access, exception); in emulator_read_std()
5995 struct x86_exception *exception) in kvm_write_guest_virt_helper() argument
6003 exception); in kvm_write_guest_virt_helper()
6025 unsigned int bytes, struct x86_exception *exception, in emulator_write_std() argument
6035 access, exception); in emulator_write_std()
6039 unsigned int bytes, struct x86_exception *exception) in kvm_write_guest_virt_system() argument
6045 PFERR_WRITE_MASK, exception); in kvm_write_guest_virt_system()
6087 gpa_t *gpa, struct x86_exception *exception, in vcpu_mmio_gva_to_gpa() argument
6107 *gpa = vcpu->arch.walk_mmu->gva_to_gpa(vcpu, gva, access, exception); in vcpu_mmio_gva_to_gpa()
6201 struct x86_exception *exception, in emulator_read_write_onepage() argument
6223 ret = vcpu_mmio_gva_to_gpa(vcpu, addr, &gpa, exception, write); in emulator_read_write_onepage()
6253 struct x86_exception *exception, in emulator_read_write() argument
6271 rc = emulator_read_write_onepage(addr, val, now, exception, in emulator_read_write()
6283 rc = emulator_read_write_onepage(addr, val, bytes, exception, in emulator_read_write()
6308 struct x86_exception *exception) in emulator_read_emulated() argument
6311 exception, &read_emultor); in emulator_read_emulated()
6318 struct x86_exception *exception) in emulator_write_emulated() argument
6321 exception, &write_emultor); in emulator_write_emulated()
6339 struct x86_exception *exception) in emulator_cmpxchg_emulated() argument
6404 return emulator_write_emulated(ctxt, addr, new, bytes, exception); in emulator_cmpxchg_emulated()
6779 &ctxt->exception); in emulator_intercept()
6914 if (ctxt->exception.vector == PF_VECTOR) in inject_emulated_exception()
6915 return kvm_inject_emulated_page_fault(vcpu, &ctxt->exception); in inject_emulated_exception()
6917 if (ctxt->exception.error_code_valid) in inject_emulated_exception()
6918 kvm_queue_exception_e(vcpu, ctxt->exception.vector, in inject_emulated_exception()
6919 ctxt->exception.error_code); in inject_emulated_exception()
6921 kvm_queue_exception(vcpu, ctxt->exception.vector); in inject_emulated_exception()
7179 kvm_run->debug.arch.exception = DB_VECTOR; in kvm_vcpu_do_singlestep()
7223 kvm_run->debug.arch.exception = DB_VECTOR; in kvm_vcpu_check_breakpoint()
7314 ctxt->exception.vector = -1; in x86_emulate_instruction()
7338 WARN_ON_ONCE(ctxt->exception.vector == UD_VECTOR || in x86_emulate_instruction()
7339 exception_type(ctxt->exception.vector) == EXCPT_TRAP); in x86_emulate_instruction()
7378 ctxt->exception.address = cr2_or_gpa; in x86_emulate_instruction()
7387 ctxt->exception.address = 0; in x86_emulate_instruction()
7433 exception_type(ctxt->exception.vector) == EXCPT_TRAP) { in x86_emulate_instruction()
8148 &ctxt->exception); in emulator_fix_hypercall()
8203 if (vcpu->arch.exception.injected) { in inject_pending_event()
8221 else if (!vcpu->arch.exception.pending) { in inject_pending_event()
8231 WARN_ON_ONCE(vcpu->arch.exception.injected && in inject_pending_event()
8232 vcpu->arch.exception.pending); in inject_pending_event()
8247 if (vcpu->arch.exception.pending) { in inject_pending_event()
8248 trace_kvm_inj_exception(vcpu->arch.exception.nr, in inject_pending_event()
8249 vcpu->arch.exception.has_error_code, in inject_pending_event()
8250 vcpu->arch.exception.error_code); in inject_pending_event()
8252 vcpu->arch.exception.pending = false; in inject_pending_event()
8253 vcpu->arch.exception.injected = true; in inject_pending_event()
8255 if (exception_type(vcpu->arch.exception.nr) == EXCPT_FAULT) in inject_pending_event()
8259 if (vcpu->arch.exception.nr == DB_VECTOR) { in inject_pending_event()
8328 WARN_ON(vcpu->arch.exception.pending); in inject_pending_event()
9393 vcpu->arch.exception.pending = false; in __set_regs()
9670 if (vcpu->arch.exception.pending) in kvm_arch_vcpu_ioctl_set_guest_debug()
10690 if (vcpu->arch.exception.pending) in kvm_vcpu_has_events()
10926 vcpu->arch.exception.pending)) in kvm_can_do_async_pf()