Home
last modified time | relevance | path

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

/arch/x86/include/asm/
Ddebugreg.h119 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()
Dhw_breakpoint.h73 int decode_dr7(unsigned long dr7, int bpnum, unsigned *len, unsigned *type);
Dsvm.h250 u64 dr7; member
Dkvm_host.h790 unsigned long dr7; member
/arch/x86/kernel/
Dhw_breakpoint.c77 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 …]
Dtraps.c892 unsigned long dr7 = local_db_save(); in exc_debug_kernel() local
949 local_db_restore(dr7); in exc_debug_kernel()
Dsev.c79 unsigned long dr7; member
1144 data->dr7 = val; in vc_handle_dr7_write()
1159 *reg = data->dr7; in vc_handle_dr7_read()
Dptrace.c479 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/
Dcore.c2059 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/
Dkvm.h291 __u64 dr7; member
371 __u64 dr7; member
/arch/x86/kvm/svm/
Dnested.c303 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()
Dsvm.c1916 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()
Dsev.c557 if (svm->vcpu.guest_debug || (save->dr7 & ~DR7_FIXED_1)) in sev_es_sync_vmsa()
/arch/x86/kvm/
Dx86.c1242 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 …]
Demulate.c3260 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/
Dvmx.c4950 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()
Dnested.c2516 kvm_set_dr(vcpu, 7, vcpu->arch.dr7); in prepare_vmcs02()