/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 | 73 int decode_dr7(unsigned long dr7, int bpnum, unsigned *len, unsigned *type);
|
D | svm.h | 250 u64 dr7; member
|
D | kvm_host.h | 790 unsigned long dr7; member
|
/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 | traps.c | 892 unsigned long dr7 = local_db_save(); in exc_debug_kernel() local 949 local_db_restore(dr7); in exc_debug_kernel()
|
D | sev.c | 79 unsigned long dr7; member 1144 data->dr7 = val; in vc_handle_dr7_write() 1159 *reg = data->dr7; in vc_handle_dr7_read()
|
D | ptrace.c | 479 int dr7 = 0; in ptrace_get_dr7() local 485 dr7 |= encode_dr7(i, info->len, info->type); in ptrace_get_dr7() 489 return dr7; in ptrace_get_dr7()
|
/arch/x86/kernel/cpu/mce/ |
D | core.c | 2059 unsigned long dr7; in DEFINE_IDTENTRY_MCE() local 2061 dr7 = local_db_save(); in DEFINE_IDTENTRY_MCE() 2063 local_db_restore(dr7); in DEFINE_IDTENTRY_MCE() 2069 unsigned long dr7; in DEFINE_IDTENTRY_MCE_USER() local 2071 dr7 = local_db_save(); in DEFINE_IDTENTRY_MCE_USER() 2073 local_db_restore(dr7); in DEFINE_IDTENTRY_MCE_USER() 2079 unsigned long dr7; in DEFINE_IDTENTRY_RAW() local 2081 dr7 = local_db_save(); in DEFINE_IDTENTRY_RAW() 2086 local_db_restore(dr7); in DEFINE_IDTENTRY_RAW()
|
/arch/x86/include/uapi/asm/ |
D | kvm.h | 291 __u64 dr7; member 371 __u64 dr7; member
|
/arch/x86/kvm/svm/ |
D | nested.c | 303 if (CC(!kvm_dr6_valid(save->dr6)) || CC(!kvm_dr7_valid(save->dr7))) in nested_vmcb_valid_sregs() 502 svm->vmcb->save.dr7 = vmcb12->save.dr7 | DR7_FIXED_1; in nested_vmcb02_prepare_save() 790 vmcb12->save.dr7 = vmcb->save.dr7; in nested_svm_vmexit() 846 svm->vcpu.arch.dr7 = DR7_FIXED_1; in nested_svm_vmexit() 1114 if (svm->vcpu.arch.dr7 & DR7_GD) { in nested_svm_inject_exception_vmexit() 1115 svm->vcpu.arch.dr7 &= ~DR7_GD; in nested_svm_inject_exception_vmexit()
|
D | svm.c | 1916 vcpu->arch.dr7 = svm->vmcb->save.dr7; in svm_sync_dirty_debug_regs() 1928 svm->vmcb->save.dr7 = value; in svm_set_dr7() 1982 kvm_run->debug.arch.dr7 = svm->vmcb->save.dr7; in db_interception() 3264 "dr6:", save->dr6, "dr7:", save->dr7); in dump_vmcb()
|
D | sev.c | 557 if (svm->vcpu.guest_debug || (save->dr7 & ~DR7_FIXED_1)) in sev_es_sync_vmsa()
|
/arch/x86/kvm/ |
D | x86.c | 1242 unsigned long dr7; in kvm_update_dr7() local 1245 dr7 = vcpu->arch.guest_debug_dr7; in kvm_update_dr7() 1247 dr7 = vcpu->arch.dr7; in kvm_update_dr7() 1248 static_call(kvm_x86_set_dr7)(vcpu, dr7); in kvm_update_dr7() 1250 if (dr7 & DR7_BP_EN_MASK) in kvm_update_dr7() 1287 vcpu->arch.dr7 = (val & DR7_VOLATILE) | DR7_FIXED_1; in kvm_set_dr() 1310 *val = vcpu->arch.dr7; in kvm_get_dr() 4842 dbgregs->dr7 = vcpu->arch.dr7; in kvm_vcpu_ioctl_x86_get_debugregs() 4853 if (!kvm_dr7_valid(dbgregs->dr7)) in kvm_vcpu_ioctl_x86_set_debugregs() 4859 vcpu->arch.dr7 = dbgregs->dr7; in kvm_vcpu_ioctl_x86_set_debugregs() [all …]
|
D | emulate.c | 3260 ulong desc_addr, dr7; in emulator_do_task_switch() local 3345 ops->get_dr(ctxt, 7, &dr7); in emulator_do_task_switch() 3346 ops->set_dr(ctxt, 7, dr7 & ~(DR_LOCAL_ENABLE_MASK | DR_LOCAL_SLOWDOWN)); in emulator_do_task_switch() 4204 unsigned long dr7; in check_dr7_gd() local 4206 ctxt->ops->get_dr(ctxt, 7, &dr7); in check_dr7_gd() 4209 return dr7 & (1 << 13); in check_dr7_gd()
|
/arch/x86/kvm/vmx/ |
D | vmx.c | 4950 kvm_run->debug.arch.dr7 = vmcs_readl(GUEST_DR7); in handle_exception_nmi() 5165 int dr, dr7, reg; in handle_dr() local 5178 dr7 = vmcs_readl(GUEST_DR7); in handle_dr() 5179 if (dr7 & DR7_GD) { in handle_dr() 5187 vcpu->run->debug.arch.dr7 = dr7; in handle_dr() 5232 vcpu->arch.dr7 = vmcs_readl(GUEST_DR7); in vmx_sync_dirty_debug_regs()
|
D | nested.c | 2516 kvm_set_dr(vcpu, 7, vcpu->arch.dr7); in prepare_vmcs02()
|