Home
last modified time | relevance | path

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

/linux-4.4.14/arch/x86/kernel/
Dhw_breakpoint.c86 int decode_dr7(unsigned long dr7, int bpnum, unsigned *len, unsigned *type) in decode_dr7() argument
88 int bp_info = dr7 >> (DR_CONTROL_SHIFT + bpnum * DR_CONTROL_SIZE); in decode_dr7()
93 return (dr7 >> (bpnum * DR_ENABLE_SIZE)) & 0x3; in decode_dr7()
108 unsigned long *dr7; in arch_install_hw_breakpoint() local
126 dr7 = this_cpu_ptr(&cpu_dr7); in arch_install_hw_breakpoint()
127 *dr7 |= encode_dr7(i, info->len, info->type); in arch_install_hw_breakpoint()
129 set_debugreg(*dr7, 7); in arch_install_hw_breakpoint()
148 unsigned long *dr7; in arch_uninstall_hw_breakpoint() local
163 dr7 = this_cpu_ptr(&cpu_dr7); in arch_uninstall_hw_breakpoint()
164 *dr7 &= ~__encode_dr7(i, info->len, info->type); in arch_uninstall_hw_breakpoint()
[all …]
Dptrace.c583 int dr7 = 0; in ptrace_get_dr7() local
589 dr7 |= encode_dr7(i, info->len, info->type); in ptrace_get_dr7()
593 return dr7; in ptrace_get_dr7()
/linux-4.4.14/tools/testing/selftests/breakpoints/
Dbreakpoint_test.c57 unsigned long vdr7, dr7; in toggle_breakpoint() local
86 dr7 = ptrace(PTRACE_PEEKUSER, child_pid, in toggle_breakpoint()
102 dr7 |= vdr7; in toggle_breakpoint()
104 dr7 &= ~vdr7; in toggle_breakpoint()
107 offsetof(struct user, u_debugreg[7]), dr7); in toggle_breakpoint()
/linux-4.4.14/arch/x86/include/asm/
Dhw_breakpoint.h69 int decode_dr7(unsigned long dr7, int bpnum, unsigned *len, unsigned *type);
Dsvm.h157 u64 dr7; member
Dkvm_host.h521 unsigned long dr7; member
/linux-4.4.14/arch/x86/include/uapi/asm/
Dkvm.h252 __u64 dr7; member
328 __u64 dr7; member
/linux-4.4.14/arch/x86/kvm/
Dx86.c837 unsigned long dr7; in kvm_update_dr7() local
840 dr7 = vcpu->arch.guest_debug_dr7; in kvm_update_dr7()
842 dr7 = vcpu->arch.dr7; in kvm_update_dr7()
843 kvm_x86_ops->set_dr7(vcpu, dr7); in kvm_update_dr7()
845 if (dr7 & DR7_BP_EN_MASK) in kvm_update_dr7()
879 vcpu->arch.dr7 = (val & DR7_VOLATILE) | DR7_FIXED_1; in __kvm_set_dr()
914 *val = vcpu->arch.dr7; in kvm_get_dr()
3006 dbgregs->dr7 = vcpu->arch.dr7; in kvm_vcpu_ioctl_x86_get_debugregs()
3019 if (dbgregs->dr7 & ~0xffffffffull) in kvm_vcpu_ioctl_x86_set_debugregs()
3026 vcpu->arch.dr7 = dbgregs->dr7; in kvm_vcpu_ioctl_x86_set_debugregs()
[all …]
Dsvm.c1607 vcpu->arch.dr7 = svm->vmcb->save.dr7; in svm_sync_dirty_debug_regs()
1617 svm->vmcb->save.dr7 = value; in svm_set_dr7()
2266 nested_vmcb->save.dr7 = vmcb->save.dr7; in nested_svm_vmexit()
2334 svm->vmcb->save.dr7 = 0; in nested_svm_vmexit()
2500 svm->vmcb->save.dr7 = nested_vmcb->save.dr7; in nested_svm_vmrun()
3387 "dr6:", save->dr6, "dr7:", save->dr7); in dump_vmcb()
Demulate.c3150 ulong desc_addr, dr7; in emulator_do_task_switch() local
3235 ops->get_dr(ctxt, 7, &dr7); in emulator_do_task_switch()
3236 ops->set_dr(ctxt, 7, dr7 & ~(DR_LOCAL_ENABLE_MASK | DR_LOCAL_SLOWDOWN)); in emulator_do_task_switch()
3930 unsigned long dr7; in check_dr7_gd() local
3932 ctxt->ops->get_dr(ctxt, 7, &dr7); in check_dr7_gd()
3935 return dr7 & (1 << 13); in check_dr7_gd()
Dvmx.c5308 kvm_run->debug.arch.dr7 = vmcs_readl(GUEST_DR7); in handle_exception()
5537 int dr, dr7, reg; in handle_dr() local
5549 dr7 = vmcs_readl(GUEST_DR7); in handle_dr()
5550 if (dr7 & DR7_GD) { in handle_dr()
5558 vcpu->run->debug.arch.dr7 = dr7; in handle_dr()
5620 vcpu->arch.dr7 = vmcs_readl(GUEST_DR7); in vmx_sync_dirty_debug_regs()
9514 kvm_set_dr(vcpu, 7, vcpu->arch.dr7); in prepare_vmcs02()
/linux-4.4.14/Documentation/virtual/kvm/
Dapi.txt893 __u64 dr7;