/Linux-v6.6/arch/x86/include/asm/ |
D | debugreg.h | 119 unsigned long dr7; in local_db_save() local 124 get_debugreg(dr7, 7); in local_db_save() 125 dr7 &= ~0x400; /* architecturally set bit */ in local_db_save() 126 if (dr7) in local_db_save() 135 return dr7; in local_db_save() 138 static __always_inline void local_db_restore(unsigned long dr7) in local_db_restore() argument 146 if (dr7) in local_db_restore() 147 set_debugreg(dr7, 7); in local_db_restore()
|
D | hw_breakpoint.h | 70 int decode_dr7(unsigned long dr7, int bpnum, unsigned *len, unsigned *type);
|
D | svm.h | 323 u64 dr7; member 380 u64 dr7; member 469 u64 dr7; member
|
D | kvm_host.h | 906 unsigned long dr7; member
|
/Linux-v6.6/arch/x86/kernel/ |
D | hw_breakpoint.c | 77 int decode_dr7(unsigned long dr7, int bpnum, unsigned *len, unsigned *type) in decode_dr7() argument 79 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() [all …]
|
D | ptrace.c | 498 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()
|
D | traps.c | 951 unsigned long dr7 = local_db_save(); in exc_debug_kernel() local 1008 local_db_restore(dr7); in exc_debug_kernel()
|
D | sev.c | 108 unsigned long dr7; member 1049 vmsa->dr7 = DR7_RESET_VALUE; in wakeup_cpu_via_vmgexit() 1636 data->dr7 = val; in vc_handle_dr7_write() 1654 *reg = data->dr7; in vc_handle_dr7_read()
|
/Linux-v6.6/tools/perf/arch/x86/tests/ |
D | bp-modify.c | 63 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-v6.6/tools/testing/selftests/x86/ |
D | mov_ss_trap.c | 64 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-v6.6/tools/testing/selftests/breakpoints/ |
D | breakpoint_test.c | 59 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-v6.6/arch/x86/kvm/ |
D | smm.h | 59 u32 dr7; member 130 u64 dr7; member
|
D | smm.c | 52 CHECK_SMRAM32_OFFSET(dr7, 0xFFC8); in check_smram_offsets() 99 CHECK_SMRAM64_OFFSET(dr7, 0xFF60); in check_smram_offsets() 201 smram->dr7 = (u32)val; in enter_smm_save_state_32() 247 smram->dr7 = val; in enter_smm_save_state_64() 482 if (kvm_set_dr(vcpu, 7, smstate->dr7)) in rsm_load_state_32() 534 if (kvm_set_dr(vcpu, 7, smstate->dr7)) in rsm_load_state_64()
|
D | x86.c | 1348 unsigned long dr7; in kvm_update_dr7() local 1351 dr7 = vcpu->arch.guest_debug_dr7; in kvm_update_dr7() 1353 dr7 = vcpu->arch.dr7; in kvm_update_dr7() 1354 static_call(kvm_x86_set_dr7)(vcpu, dr7); in kvm_update_dr7() 1356 if (dr7 & DR7_BP_EN_MASK) in kvm_update_dr7() 1393 vcpu->arch.dr7 = (val & DR7_VOLATILE) | DR7_FIXED_1; in kvm_set_dr() 1416 *val = vcpu->arch.dr7; in kvm_get_dr() 5362 dbgregs->dr7 = vcpu->arch.dr7; in kvm_vcpu_ioctl_x86_get_debugregs() 5373 if (!kvm_dr7_valid(dbgregs->dr7)) in kvm_vcpu_ioctl_x86_set_debugregs() 5379 vcpu->arch.dr7 = dbgregs->dr7; in kvm_vcpu_ioctl_x86_set_debugregs() [all …]
|
D | emulate.c | 2929 ulong desc_addr, dr7; in emulator_do_task_switch() local 3013 ops->get_dr(ctxt, 7, &dr7); in emulator_do_task_switch() 3014 ops->set_dr(ctxt, 7, dr7 & ~(DR_LOCAL_ENABLE_MASK | DR_LOCAL_SLOWDOWN)); in emulator_do_task_switch() 3868 unsigned long dr7; in check_dr7_gd() local 3870 ctxt->ops->get_dr(ctxt, 7, &dr7); in check_dr7_gd() 3872 return dr7 & DR7_GD; in check_dr7_gd()
|
/Linux-v6.6/arch/x86/kernel/cpu/mce/ |
D | core.c | 2131 unsigned long dr7; in DEFINE_IDTENTRY_MCE() local 2133 dr7 = local_db_save(); in DEFINE_IDTENTRY_MCE() 2135 local_db_restore(dr7); in DEFINE_IDTENTRY_MCE() 2141 unsigned long dr7; in DEFINE_IDTENTRY_MCE_USER() local 2143 dr7 = local_db_save(); in DEFINE_IDTENTRY_MCE_USER() 2145 local_db_restore(dr7); in DEFINE_IDTENTRY_MCE_USER() 2151 unsigned long dr7; in DEFINE_IDTENTRY_RAW() local 2153 dr7 = local_db_save(); in DEFINE_IDTENTRY_RAW() 2158 local_db_restore(dr7); in DEFINE_IDTENTRY_RAW()
|
/Linux-v6.6/arch/x86/kvm/svm/ |
D | nested.c | 303 if (CC(!kvm_dr6_valid(save->dr6)) || CC(!kvm_dr7_valid(save->dr7))) in __nested_vmcb_check_save() 408 to->dr7 = from->dr7; in __nested_copy_vmcb_save_to_cache() 601 vmcb02->save.dr7 = svm->nested.save.dr7 | DR7_FIXED_1; in nested_vmcb02_prepare_save() 1025 vmcb12->save.dr7 = vmcb02->save.dr7; in nested_svm_vmexit() 1132 svm->vcpu.arch.dr7 = DR7_FIXED_1; in nested_svm_vmexit() 1418 if (vcpu->arch.dr7 & DR7_GD) { in nested_svm_inject_exception_vmexit() 1419 vcpu->arch.dr7 &= ~DR7_GD; in nested_svm_inject_exception_vmexit()
|
D | svm.h | 121 u64 dr7; member
|
D | svm.c | 2037 vcpu->arch.dr7 = svm->vmcb->save.dr7; in svm_sync_dirty_debug_regs() 2049 svm->vmcb->save.dr7 = value; in svm_set_dr7() 2103 kvm_run->debug.arch.dr7 = svm->vmcb->save.dr7; in db_interception() 3427 "dr6:", save->dr6, "dr7:", save->dr7); in dump_vmcb()
|
D | sev.c | 577 if (svm->vcpu.guest_debug || (svm->vmcb->save.dr7 & ~DR7_FIXED_1)) in sev_es_sync_vmsa()
|
/Linux-v6.6/arch/x86/include/uapi/asm/ |
D | kvm.h | 289 __u64 dr7; member 374 __u64 dr7; member
|
/Linux-v6.6/tools/arch/x86/include/uapi/asm/ |
D | kvm.h | 289 __u64 dr7; member 374 __u64 dr7; member
|
/Linux-v6.6/tools/testing/selftests/kvm/lib/x86_64/ |
D | svm.c | 94 asm volatile ("mov %%dr7, %0" : "=r"(save->dr7) : : "memory"); in generic_svm_setup()
|
/Linux-v6.6/tools/testing/selftests/kvm/include/x86_64/ |
D | svm.h | 214 u64 dr7; member
|
/Linux-v6.6/arch/x86/kvm/vmx/ |
D | vmx.c | 5302 kvm_run->debug.arch.dr7 = vmcs_readl(GUEST_DR7); in handle_exception_nmi() 5523 int dr, dr7, reg; in handle_dr() local 5536 dr7 = vmcs_readl(GUEST_DR7); in handle_dr() 5537 if (dr7 & DR7_GD) { in handle_dr() 5545 vcpu->run->debug.arch.dr7 = dr7; in handle_dr() 5590 vcpu->arch.dr7 = vmcs_readl(GUEST_DR7); in vmx_sync_dirty_debug_regs()
|