Lines Matching refs:exception

370 	if (!vcpu->arch.exception.pending) {  in kvm_multiple_exception()
374 vcpu->arch.exception.pending = true; in kvm_multiple_exception()
375 vcpu->arch.exception.has_error_code = has_error; in kvm_multiple_exception()
376 vcpu->arch.exception.nr = nr; in kvm_multiple_exception()
377 vcpu->arch.exception.error_code = error_code; in kvm_multiple_exception()
378 vcpu->arch.exception.reinject = reinject; in kvm_multiple_exception()
383 prev_nr = vcpu->arch.exception.nr; in kvm_multiple_exception()
394 vcpu->arch.exception.pending = true; in kvm_multiple_exception()
395 vcpu->arch.exception.has_error_code = true; in kvm_multiple_exception()
396 vcpu->arch.exception.nr = DF_VECTOR; in kvm_multiple_exception()
397 vcpu->arch.exception.error_code = 0; in kvm_multiple_exception()
495 struct x86_exception exception; in kvm_read_guest_page_mmu() local
500 real_gfn = mmu->translate_gpa(vcpu, ngpa, access, &exception); in kvm_read_guest_page_mmu()
2911 events->exception.injected = in kvm_vcpu_ioctl_x86_get_vcpu_events()
2912 vcpu->arch.exception.pending && in kvm_vcpu_ioctl_x86_get_vcpu_events()
2913 !kvm_exception_is_soft(vcpu->arch.exception.nr); in kvm_vcpu_ioctl_x86_get_vcpu_events()
2914 events->exception.nr = vcpu->arch.exception.nr; in kvm_vcpu_ioctl_x86_get_vcpu_events()
2915 events->exception.has_error_code = vcpu->arch.exception.has_error_code; in kvm_vcpu_ioctl_x86_get_vcpu_events()
2916 events->exception.pad = 0; in kvm_vcpu_ioctl_x86_get_vcpu_events()
2917 events->exception.error_code = vcpu->arch.exception.error_code; in kvm_vcpu_ioctl_x86_get_vcpu_events()
2954 vcpu->arch.exception.pending = events->exception.injected; in kvm_vcpu_ioctl_x86_set_vcpu_events()
2955 vcpu->arch.exception.nr = events->exception.nr; in kvm_vcpu_ioctl_x86_set_vcpu_events()
2956 vcpu->arch.exception.has_error_code = events->exception.has_error_code; in kvm_vcpu_ioctl_x86_set_vcpu_events()
2957 vcpu->arch.exception.error_code = events->exception.error_code; in kvm_vcpu_ioctl_x86_set_vcpu_events()
4108 struct x86_exception *exception) in translate_nested_gpa() argument
4116 t_gpa = vcpu->arch.mmu.gva_to_gpa(vcpu, gpa, access, exception); in translate_nested_gpa()
4122 struct x86_exception *exception) in kvm_mmu_gva_to_gpa_read() argument
4125 return vcpu->arch.walk_mmu->gva_to_gpa(vcpu, gva, access, exception); in kvm_mmu_gva_to_gpa_read()
4129 struct x86_exception *exception) in kvm_mmu_gva_to_gpa_fetch() argument
4133 return vcpu->arch.walk_mmu->gva_to_gpa(vcpu, gva, access, exception); in kvm_mmu_gva_to_gpa_fetch()
4137 struct x86_exception *exception) in kvm_mmu_gva_to_gpa_write() argument
4141 return vcpu->arch.walk_mmu->gva_to_gpa(vcpu, gva, access, exception); in kvm_mmu_gva_to_gpa_write()
4146 struct x86_exception *exception) in kvm_mmu_gva_to_gpa_system() argument
4148 return vcpu->arch.walk_mmu->gva_to_gpa(vcpu, gva, 0, exception); in kvm_mmu_gva_to_gpa_system()
4153 struct x86_exception *exception) in kvm_read_guest_virt_helper() argument
4160 exception); in kvm_read_guest_virt_helper()
4185 struct x86_exception *exception) in kvm_fetch_guest_virt() argument
4194 exception); in kvm_fetch_guest_virt()
4211 struct x86_exception *exception) in kvm_read_guest_virt() argument
4217 exception); in kvm_read_guest_virt()
4223 struct x86_exception *exception) in kvm_read_guest_virt_system() argument
4226 return kvm_read_guest_virt_helper(addr, val, bytes, vcpu, 0, exception); in kvm_read_guest_virt_system()
4241 struct x86_exception *exception) in kvm_write_guest_virt_system() argument
4250 exception); in kvm_write_guest_virt_system()
4273 gpa_t *gpa, struct x86_exception *exception, in vcpu_mmio_gva_to_gpa() argument
4288 *gpa = vcpu->arch.walk_mmu->gva_to_gpa(vcpu, gva, access, exception); in vcpu_mmio_gva_to_gpa()
4391 struct x86_exception *exception, in emulator_read_write_onepage() argument
4400 ret = vcpu_mmio_gva_to_gpa(vcpu, addr, &gpa, exception, write); in emulator_read_write_onepage()
4435 struct x86_exception *exception, in emulator_read_write() argument
4453 rc = emulator_read_write_onepage(addr, val, now, exception, in emulator_read_write()
4465 rc = emulator_read_write_onepage(addr, val, bytes, exception, in emulator_read_write()
4490 struct x86_exception *exception) in emulator_read_emulated() argument
4493 exception, &read_emultor); in emulator_read_emulated()
4500 struct x86_exception *exception) in emulator_write_emulated() argument
4503 exception, &write_emultor); in emulator_write_emulated()
4521 struct x86_exception *exception) in emulator_cmpxchg_emulated() argument
4578 return emulator_write_emulated(ctxt, addr, new, bytes, exception); in emulator_cmpxchg_emulated()
5031 if (ctxt->exception.vector == PF_VECTOR) in inject_emulated_exception()
5032 return kvm_propagate_fault(vcpu, &ctxt->exception); in inject_emulated_exception()
5034 if (ctxt->exception.error_code_valid) in inject_emulated_exception()
5035 kvm_queue_exception_e(vcpu, ctxt->exception.vector, in inject_emulated_exception()
5036 ctxt->exception.error_code); in inject_emulated_exception()
5038 kvm_queue_exception(vcpu, ctxt->exception.vector); in inject_emulated_exception()
5288 kvm_run->debug.arch.exception = DB_VECTOR; in kvm_vcpu_check_singlestep()
5318 kvm_run->debug.arch.exception = DB_VECTOR; in kvm_vcpu_check_breakpoint()
5376 ctxt->exception.vector = -1; in x86_emulate_instruction()
5461 exception_type(ctxt->exception.vector) == EXCPT_TRAP) in x86_emulate_instruction()
5992 if (vcpu->arch.exception.pending) { in inject_pending_event()
5993 trace_kvm_inj_exception(vcpu->arch.exception.nr, in inject_pending_event()
5994 vcpu->arch.exception.has_error_code, in inject_pending_event()
5995 vcpu->arch.exception.error_code); in inject_pending_event()
5997 if (exception_type(vcpu->arch.exception.nr) == EXCPT_FAULT) in inject_pending_event()
6001 if (vcpu->arch.exception.nr == DB_VECTOR && in inject_pending_event()
6007 kvm_x86_ops->queue_exception(vcpu, vcpu->arch.exception.nr, in inject_pending_event()
6008 vcpu->arch.exception.has_error_code, in inject_pending_event()
6009 vcpu->arch.exception.error_code, in inject_pending_event()
6010 vcpu->arch.exception.reinject); in inject_pending_event()
6902 vcpu->arch.exception.pending = false; in kvm_arch_vcpu_ioctl_set_regs()
7097 if (vcpu->arch.exception.pending) in kvm_arch_vcpu_ioctl_set_guest_debug()