Lines Matching refs:exception

360 	if (!vcpu->arch.exception.pending) {  in kvm_multiple_exception()
364 vcpu->arch.exception.pending = true; in kvm_multiple_exception()
365 vcpu->arch.exception.has_error_code = has_error; in kvm_multiple_exception()
366 vcpu->arch.exception.nr = nr; in kvm_multiple_exception()
367 vcpu->arch.exception.error_code = error_code; in kvm_multiple_exception()
368 vcpu->arch.exception.reinject = reinject; in kvm_multiple_exception()
373 prev_nr = vcpu->arch.exception.nr; in kvm_multiple_exception()
384 vcpu->arch.exception.pending = true; in kvm_multiple_exception()
385 vcpu->arch.exception.has_error_code = true; in kvm_multiple_exception()
386 vcpu->arch.exception.nr = DF_VECTOR; in kvm_multiple_exception()
387 vcpu->arch.exception.error_code = 0; in kvm_multiple_exception()
485 struct x86_exception exception; in kvm_read_guest_page_mmu() local
490 real_gfn = mmu->translate_gpa(vcpu, ngpa, access, &exception); in kvm_read_guest_page_mmu()
3097 events->exception.injected = in kvm_vcpu_ioctl_x86_get_vcpu_events()
3098 vcpu->arch.exception.pending && in kvm_vcpu_ioctl_x86_get_vcpu_events()
3099 !kvm_exception_is_soft(vcpu->arch.exception.nr); in kvm_vcpu_ioctl_x86_get_vcpu_events()
3100 events->exception.nr = vcpu->arch.exception.nr; in kvm_vcpu_ioctl_x86_get_vcpu_events()
3101 events->exception.has_error_code = vcpu->arch.exception.has_error_code; in kvm_vcpu_ioctl_x86_get_vcpu_events()
3102 events->exception.pad = 0; in kvm_vcpu_ioctl_x86_get_vcpu_events()
3103 events->exception.error_code = vcpu->arch.exception.error_code; in kvm_vcpu_ioctl_x86_get_vcpu_events()
3132 vcpu->arch.exception.pending = events->exception.injected; in kvm_vcpu_ioctl_x86_set_vcpu_events()
3133 vcpu->arch.exception.nr = events->exception.nr; in kvm_vcpu_ioctl_x86_set_vcpu_events()
3134 vcpu->arch.exception.has_error_code = events->exception.has_error_code; in kvm_vcpu_ioctl_x86_set_vcpu_events()
3135 vcpu->arch.exception.error_code = events->exception.error_code; in kvm_vcpu_ioctl_x86_set_vcpu_events()
4199 struct x86_exception *exception) in translate_nested_gpa() argument
4207 t_gpa = vcpu->arch.mmu.gva_to_gpa(vcpu, gpa, access, exception); in translate_nested_gpa()
4213 struct x86_exception *exception) in kvm_mmu_gva_to_gpa_read() argument
4216 return vcpu->arch.walk_mmu->gva_to_gpa(vcpu, gva, access, exception); in kvm_mmu_gva_to_gpa_read()
4220 struct x86_exception *exception) in kvm_mmu_gva_to_gpa_fetch() argument
4224 return vcpu->arch.walk_mmu->gva_to_gpa(vcpu, gva, access, exception); in kvm_mmu_gva_to_gpa_fetch()
4228 struct x86_exception *exception) in kvm_mmu_gva_to_gpa_write() argument
4232 return vcpu->arch.walk_mmu->gva_to_gpa(vcpu, gva, access, exception); in kvm_mmu_gva_to_gpa_write()
4237 struct x86_exception *exception) in kvm_mmu_gva_to_gpa_system() argument
4239 return vcpu->arch.walk_mmu->gva_to_gpa(vcpu, gva, 0, exception); in kvm_mmu_gva_to_gpa_system()
4244 struct x86_exception *exception) in kvm_read_guest_virt_helper() argument
4251 exception); in kvm_read_guest_virt_helper()
4276 struct x86_exception *exception) in kvm_fetch_guest_virt() argument
4285 exception); in kvm_fetch_guest_virt()
4302 struct x86_exception *exception) in kvm_read_guest_virt() argument
4308 exception); in kvm_read_guest_virt()
4314 struct x86_exception *exception) in kvm_read_guest_virt_system() argument
4317 return kvm_read_guest_virt_helper(addr, val, bytes, vcpu, 0, exception); in kvm_read_guest_virt_system()
4323 struct x86_exception *exception) in kvm_write_guest_virt_system() argument
4332 exception); in kvm_write_guest_virt_system()
4355 gpa_t *gpa, struct x86_exception *exception, in vcpu_mmio_gva_to_gpa() argument
4370 *gpa = vcpu->arch.walk_mmu->gva_to_gpa(vcpu, gva, access, exception); in vcpu_mmio_gva_to_gpa()
4473 struct x86_exception *exception, in emulator_read_write_onepage() argument
4482 ret = vcpu_mmio_gva_to_gpa(vcpu, addr, &gpa, exception, write); in emulator_read_write_onepage()
4517 struct x86_exception *exception, in emulator_read_write() argument
4535 rc = emulator_read_write_onepage(addr, val, now, exception, in emulator_read_write()
4547 rc = emulator_read_write_onepage(addr, val, bytes, exception, in emulator_read_write()
4572 struct x86_exception *exception) in emulator_read_emulated() argument
4575 exception, &read_emultor); in emulator_read_emulated()
4582 struct x86_exception *exception) in emulator_write_emulated() argument
4585 exception, &write_emultor); in emulator_write_emulated()
4603 struct x86_exception *exception) in emulator_cmpxchg_emulated() argument
4660 return emulator_write_emulated(ctxt, addr, new, bytes, exception); in emulator_cmpxchg_emulated()
5086 if (ctxt->exception.vector == PF_VECTOR) in inject_emulated_exception()
5087 return kvm_propagate_fault(vcpu, &ctxt->exception); in inject_emulated_exception()
5089 if (ctxt->exception.error_code_valid) in inject_emulated_exception()
5090 kvm_queue_exception_e(vcpu, ctxt->exception.vector, in inject_emulated_exception()
5091 ctxt->exception.error_code); in inject_emulated_exception()
5093 kvm_queue_exception(vcpu, ctxt->exception.vector); in inject_emulated_exception()
5312 kvm_run->debug.arch.exception = DB_VECTOR; in kvm_vcpu_check_singlestep()
5342 kvm_run->debug.arch.exception = DB_VECTOR; in kvm_vcpu_check_breakpoint()
5400 ctxt->exception.vector = -1; in x86_emulate_instruction()
5483 exception_type(ctxt->exception.vector) == EXCPT_TRAP) in x86_emulate_instruction()
6083 if (vcpu->arch.exception.pending) { in inject_pending_event()
6084 trace_kvm_inj_exception(vcpu->arch.exception.nr, in inject_pending_event()
6085 vcpu->arch.exception.has_error_code, in inject_pending_event()
6086 vcpu->arch.exception.error_code); in inject_pending_event()
6088 if (exception_type(vcpu->arch.exception.nr) == EXCPT_FAULT) in inject_pending_event()
6092 if (vcpu->arch.exception.nr == DB_VECTOR && in inject_pending_event()
6098 kvm_x86_ops->queue_exception(vcpu, vcpu->arch.exception.nr, in inject_pending_event()
6099 vcpu->arch.exception.has_error_code, in inject_pending_event()
6100 vcpu->arch.exception.error_code, in inject_pending_event()
6101 vcpu->arch.exception.reinject); in inject_pending_event()
6713 vcpu->arch.exception.pending = false; in kvm_arch_vcpu_ioctl_set_regs()
6908 if (vcpu->arch.exception.pending) in kvm_arch_vcpu_ioctl_set_guest_debug()