Home
last modified time | relevance | path

Searched refs:dr7 (Results 1 – 25 of 27) sorted by relevance

12

/linux/arch/x86/include/asm/
H A Ddebugreg.h122 unsigned long dr7; in local_db_save() local
127 get_debugreg(dr7, 7); in local_db_save()
128 dr7 &= ~0x400; /* architecturally set bit */ in local_db_save()
129 if (dr7) in local_db_save()
138 return dr7; in local_db_save()
141 static __always_inline void local_db_restore(unsigned long dr7) in local_db_restore() argument
149 if (dr7) in local_db_restore()
150 set_debugreg(dr7, 7); in local_db_restore()
H A Dhw_breakpoint.h70 int decode_dr7(unsigned long dr7, int bpnum, unsigned *len, unsigned *type);
H A Dsvm.h326 u64 dr7; member
383 u64 dr7; member
472 u64 dr7; member
H A Dkvm_host.h933 unsigned long dr7; member
/linux/arch/x86/kernel/
H A Dhw_breakpoint.c79 int bp_info = dr7 >> (DR_CONTROL_SHIFT + bpnum * DR_CONTROL_SIZE); in decode_dr7()
84 return (dr7 >> (bpnum * DR_ENABLE_SIZE)) & 0x3; in decode_dr7()
99 unsigned long *dr7; in arch_install_hw_breakpoint() local
119 dr7 = this_cpu_ptr(&cpu_dr7); in arch_install_hw_breakpoint()
120 *dr7 |= encode_dr7(i, info->len, info->type); in arch_install_hw_breakpoint()
128 set_debugreg(*dr7, 7); in arch_install_hw_breakpoint()
147 unsigned long dr7; in arch_uninstall_hw_breakpoint() local
164 dr7 = this_cpu_read(cpu_dr7); in arch_uninstall_hw_breakpoint()
165 dr7 &= ~__encode_dr7(i, info->len, info->type); in arch_uninstall_hw_breakpoint()
167 set_debugreg(dr7, 7); in arch_uninstall_hw_breakpoint()
[all …]
H A Dptrace.c498 int dr7 = 0; in ptrace_get_dr7() local
504 dr7 |= encode_dr7(i, info->len, info->type); in ptrace_get_dr7()
508 return dr7; in ptrace_get_dr7()
H A Dtraps.c1006 unsigned long dr7 = local_db_save(); in exc_debug_kernel() local
1064 local_db_restore(dr7); in exc_debug_kernel()
/linux/tools/perf/arch/x86/tests/
H A Dbp-modify.c63 unsigned long rip = 0, dr7 = 1; in bp_modify1() local
96 offsetof(struct user, u_debugreg[7]), dr7)) { in bp_modify1()
140 unsigned long rip = 0, dr7 = 1; in bp_modify2() local
166 offsetof(struct user, u_debugreg[7]), dr7)) { in bp_modify2()
/linux/tools/testing/selftests/x86/
H A Dmov_ss_trap.c64 unsigned long dr0, dr1, dr7; in enable_watchpoint() local
68 dr7 = ((1UL << 1) | /* G0 */ in enable_watchpoint()
85 if (ptrace(PTRACE_POKEUSER, parent, (void *)offsetof(struct user, u_debugreg[7]), dr7) != 0) in enable_watchpoint()
88 printf("\tDR0 = %lx, DR1 = %lx, DR7 = %lx\n", dr0, dr1, dr7); in enable_watchpoint()
/linux/tools/testing/selftests/breakpoints/
H A Dbreakpoint_test.c59 unsigned long vdr7, dr7; in toggle_breakpoint() local
88 dr7 = ptrace(PTRACE_PEEKUSER, child_pid, in toggle_breakpoint()
104 dr7 |= vdr7; in toggle_breakpoint()
106 dr7 &= ~vdr7; in toggle_breakpoint()
109 offsetof(struct user, u_debugreg[7]), dr7); in toggle_breakpoint()
/linux/arch/x86/kvm/
H A Dsmm.c52 CHECK_SMRAM32_OFFSET(dr7, 0xFFC8); in check_smram_offsets()
99 CHECK_SMRAM64_OFFSET(dr7, 0xFF60); in check_smram_offsets()
198 smram->dr7 = (u32)vcpu->arch.dr7; in enter_smm_save_state_32()
240 smram->dr7 = vcpu->arch.dr7; in enter_smm_save_state_64()
474 if (kvm_set_dr(vcpu, 7, smstate->dr7)) in rsm_load_state_32()
526 if (kvm_set_dr(vcpu, 7, smstate->dr7)) in rsm_load_state_64()
H A Dsmm.h59 u32 dr7; member
130 u64 dr7; member
H A Dx86.c1533 unsigned long dr7; in kvm_update_dr7() local
1538 dr7 = vcpu->arch.dr7; in kvm_update_dr7()
1541 if (dr7 & DR7_BP_EN_MASK) in kvm_update_dr7()
1599 return vcpu->arch.dr7; in kvm_get_dr()
5557 dbgregs->dr7 = vcpu->arch.dr7; in kvm_vcpu_ioctl_x86_get_debugregs()
5583 vcpu->arch.dr7 = dbgregs->dr7; in kvm_vcpu_ioctl_x86_set_debugregs()
8907 enable = dr7; in kvm_vcpu_check_hw_bp()
8908 rwlen = dr7 >> 16; in kvm_vcpu_check_hw_bp()
9015 vcpu->arch.dr7, in kvm_vcpu_check_code_breakpoint()
10370 vcpu->arch.dr7 &= ~DR7_GD; in kvm_check_and_inject_events()
[all …]
H A Demulate.c2903 ulong desc_addr, dr7; in emulator_do_task_switch() local
2987 dr7 = ops->get_dr(ctxt, 7); in emulator_do_task_switch()
2988 ops->set_dr(ctxt, 7, dr7 & ~(DR_LOCAL_ENABLE_MASK | DR_LOCAL_SLOWDOWN)); in emulator_do_task_switch()
/linux/arch/x86/kernel/cpu/mce/
H A Dcore.c2179 unsigned long dr7; in DEFINE_IDTENTRY_MCE() local
2181 dr7 = local_db_save(); in DEFINE_IDTENTRY_MCE()
2183 local_db_restore(dr7); in DEFINE_IDTENTRY_MCE()
2189 unsigned long dr7; in DEFINE_IDTENTRY_MCE_USER() local
2191 dr7 = local_db_save(); in DEFINE_IDTENTRY_MCE_USER()
2193 local_db_restore(dr7); in DEFINE_IDTENTRY_MCE_USER()
2210 unsigned long dr7; in DEFINE_FREDENTRY_MCE() local
2212 dr7 = local_db_save(); in DEFINE_FREDENTRY_MCE()
2217 local_db_restore(dr7); in DEFINE_FREDENTRY_MCE()
2224 unsigned long dr7; in DEFINE_IDTENTRY_RAW() local
[all …]
/linux/arch/x86/kvm/svm/
H A Dnested.c298 if (CC(!kvm_dr6_valid(save->dr6)) || CC(!kvm_dr7_valid(save->dr7))) in __nested_vmcb_check_save()
405 to->dr7 = from->dr7; in __nested_copy_vmcb_save_to_cache()
592 vmcb02->save.dr7 = svm->nested.save.dr7 | DR7_FIXED_1; in nested_vmcb02_prepare_save()
1016 vmcb12->save.dr7 = vmcb02->save.dr7; in nested_svm_vmexit()
1123 svm->vcpu.arch.dr7 = DR7_FIXED_1; in nested_svm_vmexit()
1409 if (vcpu->arch.dr7 & DR7_GD) { in nested_svm_inject_exception_vmexit()
1410 vcpu->arch.dr7 &= ~DR7_GD; in nested_svm_inject_exception_vmexit()
H A Dsvm.c2025 vcpu->arch.dr7 = svm->vmcb->save.dr7; in svm_sync_dirty_debug_regs()
2037 svm->vmcb->save.dr7 = value; in svm_set_dr7()
2109 kvm_run->debug.arch.dr7 = svm->vmcb->save.dr7; in db_interception()
3464 "dr6:", save->dr6, "dr7:", save->dr7); in dump_vmcb()
H A Dsvm.h143 u64 dr7; member
/linux/tools/testing/selftests/kvm/lib/x86_64/
H A Dsvm.c94 asm volatile ("mov %%dr7, %0" : "=r"(save->dr7) : : "memory"); in generic_svm_setup()
/linux/tools/testing/selftests/kvm/include/x86_64/
H A Dsvm.h214 u64 dr7; member
/linux/arch/x86/include/uapi/asm/
H A Dkvm.h290 __u64 dr7; member
375 __u64 dr7; member
/linux/tools/arch/x86/include/uapi/asm/
H A Dkvm.h290 __u64 dr7; member
375 __u64 dr7; member
/linux/arch/x86/coco/sev/
H A Dcore.c129 unsigned long dr7; member
1184 vmsa->dr7 = DR7_RESET_VALUE; in wakeup_cpu_via_vmgexit()
1826 data->dr7 = val; in vc_handle_dr7_write()
1844 *reg = data->dr7; in vc_handle_dr7_read()
/linux/arch/x86/kvm/vmx/
H A Dvmx.c5344 kvm_run->debug.arch.dr7 = vmcs_readl(GUEST_DR7); in handle_exception_nmi()
5564 int dr, dr7, reg; in handle_dr() local
5577 dr7 = vmcs_readl(GUEST_DR7); in handle_dr()
5578 if (dr7 & DR7_GD) { in handle_dr()
5586 vcpu->run->debug.arch.dr7 = dr7; in handle_dr()
5628 vcpu->arch.dr7 = vmcs_readl(GUEST_DR7); in vmx_sync_dirty_debug_regs()
H A Dnested.c2644 kvm_set_dr(vcpu, 7, vcpu->arch.dr7); in prepare_vmcs02()
4566 vmcs12->guest_dr7 = vcpu->arch.dr7; in sync_vmcs02_to_vmcs12()

12