• Home
  • Raw
  • Download

Lines Matching refs:exception

381 	if (!vcpu->arch.exception.pending) {  in kvm_multiple_exception()
385 vcpu->arch.exception.pending = true; in kvm_multiple_exception()
386 vcpu->arch.exception.has_error_code = has_error; in kvm_multiple_exception()
387 vcpu->arch.exception.nr = nr; in kvm_multiple_exception()
388 vcpu->arch.exception.error_code = error_code; in kvm_multiple_exception()
389 vcpu->arch.exception.reinject = reinject; in kvm_multiple_exception()
394 prev_nr = vcpu->arch.exception.nr; in kvm_multiple_exception()
405 vcpu->arch.exception.pending = true; in kvm_multiple_exception()
406 vcpu->arch.exception.has_error_code = true; in kvm_multiple_exception()
407 vcpu->arch.exception.nr = DF_VECTOR; in kvm_multiple_exception()
408 vcpu->arch.exception.error_code = 0; in kvm_multiple_exception()
506 struct x86_exception exception; in kvm_read_guest_page_mmu() local
511 real_gfn = mmu->translate_gpa(vcpu, ngpa, access, &exception); in kvm_read_guest_page_mmu()
3016 events->exception.injected = in kvm_vcpu_ioctl_x86_get_vcpu_events()
3017 vcpu->arch.exception.pending && in kvm_vcpu_ioctl_x86_get_vcpu_events()
3018 !kvm_exception_is_soft(vcpu->arch.exception.nr); in kvm_vcpu_ioctl_x86_get_vcpu_events()
3019 events->exception.nr = vcpu->arch.exception.nr; in kvm_vcpu_ioctl_x86_get_vcpu_events()
3020 events->exception.has_error_code = vcpu->arch.exception.has_error_code; in kvm_vcpu_ioctl_x86_get_vcpu_events()
3021 events->exception.pad = 0; in kvm_vcpu_ioctl_x86_get_vcpu_events()
3022 events->exception.error_code = vcpu->arch.exception.error_code; in kvm_vcpu_ioctl_x86_get_vcpu_events()
3060 if (events->exception.injected && in kvm_vcpu_ioctl_x86_set_vcpu_events()
3061 (events->exception.nr > 31 || events->exception.nr == NMI_VECTOR)) in kvm_vcpu_ioctl_x86_set_vcpu_events()
3071 vcpu->arch.exception.pending = events->exception.injected; in kvm_vcpu_ioctl_x86_set_vcpu_events()
3072 vcpu->arch.exception.nr = events->exception.nr; in kvm_vcpu_ioctl_x86_set_vcpu_events()
3073 vcpu->arch.exception.has_error_code = events->exception.has_error_code; in kvm_vcpu_ioctl_x86_set_vcpu_events()
3074 vcpu->arch.exception.error_code = events->exception.error_code; in kvm_vcpu_ioctl_x86_set_vcpu_events()
4238 struct x86_exception *exception) in translate_nested_gpa() argument
4246 t_gpa = vcpu->arch.mmu.gva_to_gpa(vcpu, gpa, access, exception); in translate_nested_gpa()
4252 struct x86_exception *exception) in kvm_mmu_gva_to_gpa_read() argument
4255 return vcpu->arch.walk_mmu->gva_to_gpa(vcpu, gva, access, exception); in kvm_mmu_gva_to_gpa_read()
4259 struct x86_exception *exception) in kvm_mmu_gva_to_gpa_fetch() argument
4263 return vcpu->arch.walk_mmu->gva_to_gpa(vcpu, gva, access, exception); in kvm_mmu_gva_to_gpa_fetch()
4267 struct x86_exception *exception) in kvm_mmu_gva_to_gpa_write() argument
4271 return vcpu->arch.walk_mmu->gva_to_gpa(vcpu, gva, access, exception); in kvm_mmu_gva_to_gpa_write()
4276 struct x86_exception *exception) in kvm_mmu_gva_to_gpa_system() argument
4278 return vcpu->arch.walk_mmu->gva_to_gpa(vcpu, gva, 0, exception); in kvm_mmu_gva_to_gpa_system()
4283 struct x86_exception *exception) in kvm_read_guest_virt_helper() argument
4290 exception); in kvm_read_guest_virt_helper()
4315 struct x86_exception *exception) in kvm_fetch_guest_virt() argument
4324 exception); in kvm_fetch_guest_virt()
4341 struct x86_exception *exception) in kvm_read_guest_virt() argument
4351 memset(exception, 0, sizeof(*exception)); in kvm_read_guest_virt()
4353 exception); in kvm_read_guest_virt()
4359 struct x86_exception *exception, bool system) in emulator_read_std() argument
4367 return kvm_read_guest_virt_helper(addr, val, bytes, vcpu, access, exception); in emulator_read_std()
4381 struct x86_exception *exception) in kvm_write_guest_virt_helper() argument
4389 exception); in kvm_write_guest_virt_helper()
4411 unsigned int bytes, struct x86_exception *exception, in emulator_write_std() argument
4421 access, exception); in emulator_write_std()
4425 unsigned int bytes, struct x86_exception *exception) in kvm_write_guest_virt_system() argument
4433 memset(exception, 0, sizeof(*exception)); in kvm_write_guest_virt_system()
4435 PFERR_WRITE_MASK, exception); in kvm_write_guest_virt_system()
4440 gpa_t *gpa, struct x86_exception *exception, in vcpu_mmio_gva_to_gpa() argument
4455 *gpa = vcpu->arch.walk_mmu->gva_to_gpa(vcpu, gva, access, exception); in vcpu_mmio_gva_to_gpa()
4558 struct x86_exception *exception, in emulator_read_write_onepage() argument
4567 ret = vcpu_mmio_gva_to_gpa(vcpu, addr, &gpa, exception, write); in emulator_read_write_onepage()
4602 struct x86_exception *exception, in emulator_read_write() argument
4620 rc = emulator_read_write_onepage(addr, val, now, exception, in emulator_read_write()
4632 rc = emulator_read_write_onepage(addr, val, bytes, exception, in emulator_read_write()
4657 struct x86_exception *exception) in emulator_read_emulated() argument
4660 exception, &read_emultor); in emulator_read_emulated()
4667 struct x86_exception *exception) in emulator_write_emulated() argument
4670 exception, &write_emultor); in emulator_write_emulated()
4688 struct x86_exception *exception) in emulator_cmpxchg_emulated() argument
4745 return emulator_write_emulated(ctxt, addr, new, bytes, exception); in emulator_cmpxchg_emulated()
5218 if (ctxt->exception.vector == PF_VECTOR) in inject_emulated_exception()
5219 return kvm_propagate_fault(vcpu, &ctxt->exception); in inject_emulated_exception()
5221 if (ctxt->exception.error_code_valid) in inject_emulated_exception()
5222 kvm_queue_exception_e(vcpu, ctxt->exception.vector, in inject_emulated_exception()
5223 ctxt->exception.error_code); in inject_emulated_exception()
5225 kvm_queue_exception(vcpu, ctxt->exception.vector); in inject_emulated_exception()
5466 kvm_run->debug.arch.exception = DB_VECTOR; in kvm_vcpu_do_singlestep()
5495 kvm_run->debug.arch.exception = DB_VECTOR; in kvm_vcpu_check_breakpoint()
5554 ctxt->exception.vector = -1; in x86_emulate_instruction()
5574 WARN_ON_ONCE(ctxt->exception.vector == UD_VECTOR || in x86_emulate_instruction()
5575 exception_type(ctxt->exception.vector) == EXCPT_TRAP); in x86_emulate_instruction()
5644 exception_type(ctxt->exception.vector) == EXCPT_TRAP) { in x86_emulate_instruction()
6130 &ctxt->exception); in emulator_fix_hypercall()
6180 if (vcpu->arch.exception.pending) { in inject_pending_event()
6181 trace_kvm_inj_exception(vcpu->arch.exception.nr, in inject_pending_event()
6182 vcpu->arch.exception.has_error_code, in inject_pending_event()
6183 vcpu->arch.exception.error_code); in inject_pending_event()
6185 if (exception_type(vcpu->arch.exception.nr) == EXCPT_FAULT) in inject_pending_event()
6189 if (vcpu->arch.exception.nr == DB_VECTOR && in inject_pending_event()
6195 kvm_x86_ops->queue_exception(vcpu, vcpu->arch.exception.nr, in inject_pending_event()
6196 vcpu->arch.exception.has_error_code, in inject_pending_event()
6197 vcpu->arch.exception.error_code, in inject_pending_event()
6198 vcpu->arch.exception.reinject); in inject_pending_event()
7094 vcpu->arch.exception.pending = false; in kvm_arch_vcpu_ioctl_set_regs()
7295 if (vcpu->arch.exception.pending) in kvm_arch_vcpu_ioctl_set_guest_debug()
8400 vcpu->arch.exception.pending && in kvm_arch_async_page_present()
8401 vcpu->arch.exception.nr == PF_VECTOR && in kvm_arch_async_page_present()
8403 vcpu->arch.exception.pending = false; in kvm_arch_async_page_present()
8404 vcpu->arch.exception.nr = 0; in kvm_arch_async_page_present()
8405 vcpu->arch.exception.has_error_code = false; in kvm_arch_async_page_present()
8406 vcpu->arch.exception.error_code = 0; in kvm_arch_async_page_present()