Lines Matching refs:error_code
53 ctxt->fi.error_code = 0; in vc_slow_virt_to_phys()
56 ctxt->fi.error_code |= X86_PF_USER; in vc_slow_virt_to_phys()
95 ctxt->fi.error_code = 0; in vc_ioio_check()
102 long error_code = ctxt->fi.error_code; in vc_forward_exception() local
105 ctxt->regs->orig_ax = ctxt->fi.error_code; in vc_forward_exception()
109 exc_general_protection(ctxt->regs, error_code); in vc_forward_exception()
116 exc_page_fault(ctxt->regs, error_code); in vc_forward_exception()
119 exc_alignment_check(ctxt->regs, error_code); in vc_forward_exception()
142 ctxt->fi.error_code = X86_PF_INSTR | X86_PF_USER; in __vc_decode_user_insn()
148 ctxt->fi.error_code = 0; in __vc_decode_user_insn()
170 ctxt->fi.error_code = X86_PF_INSTR; in __vc_decode_kern_insn()
199 unsigned long error_code = X86_PF_PROT | X86_PF_WRITE; in vc_write_mem() local
266 error_code |= X86_PF_USER; in vc_write_mem()
269 ctxt->fi.error_code = error_code; in vc_write_mem()
278 unsigned long error_code = X86_PF_PROT; in vc_read_mem() local
344 error_code |= X86_PF_USER; in vc_read_mem()
347 ctxt->fi.error_code = error_code; in vc_read_mem()
386 ctxt->fi.error_code = 0; in __vc_handle_secure_tsc_msrs()
449 ctxt->regs->orig_ax = ctxt->fi.error_code; in vc_early_forward_exception()
486 ctxt->fi.error_code |= X86_PF_WRITE; in vc_do_mmio()
534 ctxt->fi.error_code = 0; in vc_handle_mmio_movs()
666 ctxt->fi.error_code = 0; in vc_handle_dr7_write()
792 ctxt->fi.error_code = 0; in vc_handle_trap_ac()
880 static bool vc_raw_handle_exception(struct pt_regs *regs, unsigned long error_code) in vc_raw_handle_exception() argument
891 result = vc_init_em_ctxt(&ctxt, regs, error_code); in vc_raw_handle_exception()
894 result = vc_handle_exitcode(&ctxt, ghcb, error_code); in vc_raw_handle_exception()
905 error_code, regs->ip); in vc_raw_handle_exception()
910 error_code, regs->ip); in vc_raw_handle_exception()
915 error_code, regs->ip); in vc_raw_handle_exception()
936 static __always_inline bool vc_is_db(unsigned long error_code) in vc_is_db() argument
938 return error_code == SVM_EXIT_EXCP_BASE + X86_TRAP_DB; in vc_is_db()
969 if (vc_is_db(error_code)) { in DEFINE_IDTENTRY_VC_KERNEL()
978 if (!vc_raw_handle_exception(regs, error_code)) { in DEFINE_IDTENTRY_VC_KERNEL()
1002 if (vc_is_db(error_code)) { in DEFINE_IDTENTRY_VC_USER()
1010 if (!vc_raw_handle_exception(regs, error_code)) { in DEFINE_IDTENTRY_VC_USER()