/xen/tools/tests/x86_emulator/ |
A D | test_x86_emulator.c | 630 uint32_t *eflags, in rmw() argument 660 uint32_t *eflags, in blk() argument 910 regs.eflags = 0x200; in main() 925 regs.eflags = 0x200; in main() 940 regs.eflags = 0x200; in main() 958 regs.eflags = 0x200; in main() 972 regs.eflags = 0x200; in main() 988 regs.eflags = 0x200; in main() 1005 regs.eflags = 0x200; in main() 1035 regs.eflags = 0x200; in main() [all …]
|
/xen/xen/arch/x86/pv/ |
A D | iret.c | 111 u32 eflags; in compat_iret() local 135 if ( unlikely(__get_user(eflags, (u32 *)regs->rsp + 3)) ) in compat_iret() 142 v->arch.pv.iopl = eflags & X86_EFLAGS_IOPL; in compat_iret() 144 regs->eflags = (eflags & ~X86_EFLAGS_IOPL) | X86_EFLAGS_IF; in compat_iret() 146 if ( unlikely(eflags & X86_EFLAGS_VM) ) in compat_iret() 189 eflags &= ~X86_EFLAGS_IF; in compat_iret() 190 regs->eflags &= ~(X86_EFLAGS_VM|X86_EFLAGS_RF| in compat_iret() 216 vcpu_info(v, evtchn_upcall_mask) = !(eflags & X86_EFLAGS_IF); in compat_iret()
|
A D | emul-priv-op.c | 636 if ( unlikely(ctxt->regs->eflags & X86_EFLAGS_DF) ) in rep_ins() 1252 unsigned int eflags, ar; in pv_emulate_privileged_op() local 1262 ASSERT(regs->eflags & X86_EFLAGS_IF); in pv_emulate_privileged_op() 1264 regs->eflags &= ~X86_EFLAGS_IF; in pv_emulate_privileged_op() 1266 regs->eflags |= X86_EFLAGS_IF; in pv_emulate_privileged_op() 1267 ASSERT(!(regs->eflags & X86_EFLAGS_IOPL)); in pv_emulate_privileged_op() 1268 regs->eflags |= curr->arch.pv.iopl; in pv_emulate_privileged_op() 1269 eflags = regs->eflags; in pv_emulate_privileged_op() 1283 ASSERT(!((regs->eflags ^ eflags) & in pv_emulate_privileged_op() 1285 regs->eflags |= X86_EFLAGS_IF; in pv_emulate_privileged_op() [all …]
|
A D | emulate.c | 85 regs->eflags &= ~X86_EFLAGS_RF; in pv_emul_instruction_done() 86 if ( regs->eflags & X86_EFLAGS_TF ) in pv_emul_instruction_done()
|
/xen/xen/arch/x86/ |
A D | gdbstub.c | 71 regs->eflags &= ~X86_EFLAGS_TF; in gdb_arch_resume() 74 regs->eflags |= X86_EFLAGS_RF; in gdb_arch_resume() 78 regs->eflags |= X86_EFLAGS_TF; in gdb_arch_resume()
|
A D | traps.c | 763 (regs->eflags & X86_EFLAGS_IF) ? "" : " IN INTERRUPT CONTEXT"); in fatal_trap() 1390 (((regs->cs & 3) == 3) || !(regs->eflags & X86_EFLAGS_AC)) ) in __page_fault_type() 1420 if ( in_irq() || !(regs->eflags & X86_EFLAGS_IF) ) in fixup_page_fault() 1883 if ( regs->eflags & X86_EFLAGS_TF ) in do_debug() 1891 regs->eflags &= ~X86_EFLAGS_TF; in do_debug() 1898 regs->eflags &= ~X86_EFLAGS_TF; in do_debug()
|
A D | domain.c | 362 v->arch.user_regs.eflags = X86_EFLAGS_MBS; in arch_vcpu_regs_init() 940 v->arch.pv.iopl = v->arch.user_regs.eflags & X86_EFLAGS_IOPL; in arch_set_info_guest() 941 v->arch.user_regs.eflags &= ~X86_EFLAGS_IOPL; in arch_set_info_guest() 944 v->arch.user_regs.eflags |= X86_EFLAGS_IF; in arch_set_info_guest() 1463 regs->eflags &= ~(X86_EFLAGS_VM|X86_EFLAGS_RF|X86_EFLAGS_NT| in load_segments()
|
/xen/xen/arch/x86/x86_emulate/ |
A D | x86_emulate.c | 1566 [eflags] "+g" (_regs.eflags), [tmp] "=&r" (tmp_) \ 4080 unsigned int eflags = _regs.eflags; in x86_emulate() local 4583 _regs.eflags &= mask; in x86_emulate() 4864 eflags = (uint16_t)eflags | (_regs.eflags & 0xffff0000u); in x86_emulate() 4866 _regs.eflags &= mask; in x86_emulate() 4867 _regs.eflags |= (eflags & ~mask) | X86_EFLAGS_MBS; in x86_emulate() 6828 [eflags] "+g" (_regs.eflags), in x86_emulate() 8072 [eflags] "+g" (_regs.eflags), in x86_emulate() 11536 uint32_t *eflags, in x86_emul_rmw() argument 11704 uint32_t *eflags, in x86_emul_blk() argument [all …]
|
A D | x86_emulate.h | 290 uint32_t *eflags, 324 uint32_t *eflags, 810 uint32_t *eflags, 818 uint32_t *eflags,
|
/xen/tools/debugger/gdbsx/xg/ |
A D | xg_main.c | 394 anyc.ctxt32.user_regs.eflags |= X86_EFLAGS_TF; in _change_TF() 396 anyc.ctxt32.user_regs.eflags &= ~X86_EFLAGS_TF; in _change_TF() 531 rp->eflags = cp->eflags; in _cp_32ctxt_to_32gdb() 553 rp->eflags = cp->rflags; in _cp_64ctxt_to_32gdb() 583 rp->eflags = cp->rflags; in _cp_64ctxt_to_64gdb() 617 cp->eflags = rp->eflags; in _cp_32gdb_to_32ctxt() 638 cp->eflags = rp->eflags; in _cp_32gdb_to_64ctxt() 661 cp->rflags = rp->eflags; in _cp_64gdb_to_64ctxt()
|
A D | xg_public.h | 47 uint32_t eflags; member 75 uint32_t eflags; member
|
/xen/tools/debugger/gdbsx/gx/ |
A D | gx_local.c | 36 r32p->eflags); in prnt_32regs() 50 r64p->eflags); in prnt_64regs()
|
/xen/xen/include/public/hvm/ |
A D | hvm_vcpu.h | 38 uint32_t eflags; member
|
/xen/xen/include/asm-x86/hvm/ |
A D | support.h | 120 void hvm_hlt(unsigned int eflags);
|
/xen/xen/arch/x86/hvm/ |
A D | emulate.c | 876 if ( (hvmemul_ctxt->ctxt.regs->eflags & X86_EFLAGS_DF) && (reps > 1) ) in hvmemul_virtual_to_linear() 1395 uint32_t *eflags, in hvmemul_rmw() argument 1425 rc = x86_emul_rmw(mapping, bytes, eflags, state, ctxt); in hvmemul_rmw() 1436 rc = x86_emul_rmw(&data, bytes, eflags, state, ctxt); in hvmemul_rmw() 1449 uint32_t *eflags, in hvmemul_blk() argument 1479 rc = x86_emul_blk(mapping, p_data, bytes, eflags, state, ctxt); in hvmemul_blk() 1730 !!(ctxt->regs->eflags & X86_EFLAGS_DF), gpa); in hvmemul_rep_ins() 1811 !!(ctxt->regs->eflags & X86_EFLAGS_DF), gpa); in hvmemul_rep_outs() 1831 int rc, df = !!(ctxt->regs->eflags & X86_EFLAGS_DF); in hvmemul_rep_movs() 1999 bool_t df = !!(ctxt->regs->eflags & X86_EFLAGS_DF); in hvmemul_rep_stos() [all …]
|
A D | hvm.c | 1662 void hvm_hlt(unsigned int eflags) in hvm_hlt() argument 1674 if ( unlikely(!(eflags & X86_EFLAGS_IF)) ) in hvm_hlt() 2795 if ( eflags & X86_EFLAGS_VM ) in task_switch_load_seg() 2972 unsigned int eflags, new_cpl; in hvm_task_switch() local 3036 eflags = regs->eflags; in hvm_task_switch() 3038 eflags &= ~X86_EFLAGS_NT; in hvm_task_switch() 3041 tss.eflags = eflags | extra_eflags; in hvm_task_switch() 3087 new_cpl = tss.eflags & X86_EFLAGS_VM ? 3 : tss.cs & 3; in hvm_task_switch() 3099 regs->rflags = tss.eflags | X86_EFLAGS_MBS; in hvm_task_switch() 3120 regs->eflags |= X86_EFLAGS_NT; in hvm_task_switch() [all …]
|
A D | domain.c | 207 uregs->rflags = regs->eflags; in arch_set_info_hvm_guest()
|
/xen/xen/arch/x86/x86_64/ |
A D | gdbstub.c | 47 GDB_REG32(regs->eflags); in gdb_arch_read_reg_array()
|
/xen/xen/arch/x86/hvm/vmx/ |
A D | vvmx.c | 481 regs->eflags &= ~X86_EFLAGS_ARITH_MASK; in vmsucceed() 487 unsigned int eflags = regs->eflags; in vmfail_valid() local 491 regs->eflags = (eflags & ~X86_EFLAGS_ARITH_MASK) | X86_EFLAGS_ZF; in vmfail_valid() 498 unsigned int eflags = regs->eflags; in vmfail_invalid() local 502 regs->eflags = (eflags & ~X86_EFLAGS_ARITH_MASK) | X86_EFLAGS_CF; in vmfail_invalid()
|
A D | realmode.c | 85 regs->eflags &= ~(X86_EFLAGS_TF | X86_EFLAGS_IF | X86_EFLAGS_RF); in realmode_deliver_exception()
|
A D | vmx.c | 600 if ( unlikely(guest_cpu_user_regs()->eflags & X86_EFLAGS_VM) ) in vmx_guest_x86_mode() 1786 if ( guest_cpu_user_regs()->eflags & X86_EFLAGS_TF ) in vmx_inject_event() 1886 (v->arch.user_regs.eflags & X86_EFLAGS_TF) && in vmx_set_info_guest() 2585 regs->eflags &= ~X86_EFLAGS_RF; in update_guest_eip() 2594 if ( regs->eflags & X86_EFLAGS_TF ) in update_guest_eip() 3517 v->arch.hvm.vmx.vm86_saved_eflags = regs->eflags; in vmx_enter_realmode() 3518 regs->eflags |= (X86_EFLAGS_VM | X86_EFLAGS_IOPL); in vmx_enter_realmode() 3787 regs->eflags &= ~(X86_EFLAGS_VM | X86_EFLAGS_IOPL); in vmx_vmexit_handler() 3788 regs->eflags |= (v->arch.hvm.vmx.vm86_saved_eflags & X86_EFLAGS_IOPL); in vmx_vmexit_handler() 3888 if ( unlikely(regs->eflags & X86_EFLAGS_TF) ) in vmx_vmexit_handler() [all …]
|
/xen/xen/arch/x86/hvm/svm/ |
A D | svm.c | 117 regs->eflags &= ~X86_EFLAGS_RF; in __update_guest_eip() 121 if ( regs->eflags & X86_EFLAGS_TF ) in __update_guest_eip() 464 if ( unlikely(guest_cpu_user_regs()->eflags & X86_EFLAGS_VM) ) in svm_guest_x86_mode() 1223 if ( (regs->eflags & X86_EFLAGS_VM) && in svm_emul_swint_injection() 1224 MASK_EXTR(regs->eflags, X86_EFLAGS_IOPL) != 3 ) in svm_emul_swint_injection() 1322 if ( regs->eflags & X86_EFLAGS_TF ) in svm_inject_event() 2158 hvm_hlt(regs->eflags); in svm_vmexit_do_hlt()
|
/xen/tools/debugger/kdd/ |
A D | kdd-xen.c | 225 r->eflags = cpu->rflags; in kdd_get_regs_x86_32() 246 cpu->rflags = r->eflags; in kdd_set_regs_x86_32()
|
A D | kdd.h | 353 int32_t eflags; member
|
/xen/xen/arch/x86/mm/ |
A D | guest_walk.c | 455 !(guest_cpu_user_regs()->eflags & X86_EFLAGS_AC)) ) in guest_walk_tables()
|