Home
last modified time | relevance | path

Searched refs:dr6 (Results 1 – 22 of 22) sorted by relevance

/linux-6.15/arch/x86/kernel/
H A Dtraps.c1026 unsigned long dr6; in debug_read_clear_dr6() local
1039 get_debugreg(dr6, 6); in debug_read_clear_dr6()
1043 return dr6; in debug_read_clear_dr6()
1134 dr6 &= ~DR_STEP; in exc_debug_kernel()
1139 if (!dr6) in exc_debug_kernel()
1142 if (notify_debug(regs, &dr6)) in exc_debug_kernel()
1208 icebp = !dr6; in exc_debug_user()
1210 if (notify_debug(regs, &dr6)) in exc_debug_user()
1222 if (dr6 & DR_BUS_LOCK) in exc_debug_user()
1271 exc_debug_user(regs, dr6); in DEFINE_FREDENTRY_DEBUG()
[all …]
H A Dhw_breakpoint.c515 unsigned long dr6; in hw_breakpoint_handler() local
520 dr6 = *dr6_p; in hw_breakpoint_handler()
523 if ((dr6 & DR_TRAP_BITS) == 0) in hw_breakpoint_handler()
528 if (likely(!(dr6 & (DR_TRAP0 << i)))) in hw_breakpoint_handler()
546 if (bpx && (dr6 & DR_STEP)) in hw_breakpoint_handler()
571 (dr6 & (~DR_TRAP_BITS))) in hw_breakpoint_handler()
/linux-6.15/tools/testing/selftests/kvm/x86/
H A Ddebug_regs.c131 run->debug.arch.dr6 == target_dr6, in main()
136 run->debug.arch.dr6, target_dr6); in main()
154 run->debug.arch.dr6 == target_dr6, in main()
159 run->debug.arch.dr6, target_dr6); in main()
180 run->debug.arch.dr6 == target_dr6, in main()
184 run->debug.arch.pc, target_rip, run->debug.arch.dr6, in main()
198 run->debug.arch.dr6 == target_dr6, in main()
202 run->debug.arch.pc, target_rip, run->debug.arch.dr6, in main()
/linux-6.15/arch/x86/kvm/
H A Dsmm.c53 CHECK_SMRAM32_OFFSET(dr6, 0xFFCC); in check_smram_offsets()
100 CHECK_SMRAM64_OFFSET(dr6, 0xFF68); in check_smram_offsets()
198 smram->dr6 = (u32)vcpu->arch.dr6; in enter_smm_save_state_32()
240 smram->dr6 = vcpu->arch.dr6; in enter_smm_save_state_64()
473 if (kvm_set_dr(vcpu, 6, smstate->dr6)) in rsm_load_state_32()
525 if (kvm_set_dr(vcpu, 6, smstate->dr6)) in rsm_load_state_64()
H A Dsmm.h60 u32 dr6; member
131 u64 dr6; member
H A Dx86.c767 vcpu->arch.dr6 |= ex->payload; in kvm_deliver_exception_payload()
776 vcpu->arch.dr6 &= ~BIT(12); in kvm_deliver_exception_payload()
1546 return vcpu->arch.dr6; in kvm_get_dr()
5558 dbgregs->dr6 = vcpu->arch.dr6; in kvm_vcpu_ioctl_x86_get_debugregs()
5584 vcpu->arch.dr6 = dbgregs->dr6; in kvm_vcpu_ioctl_x86_set_debugregs()
8924 u32 dr6 = 0; in kvm_vcpu_check_hw_bp() local
8932 dr6 |= (1 << i); in kvm_vcpu_check_hw_bp()
8933 return dr6; in kvm_vcpu_check_hw_bp()
9022 if (dr6 != 0) { in kvm_vcpu_check_code_breakpoint()
9023 kvm_run->debug.arch.dr6 = dr6 | DR6_ACTIVE_LOW; in kvm_vcpu_check_code_breakpoint()
[all …]
H A Demulate.c3861 ulong dr6; in check_dr_read() local
3863 dr6 = ctxt->ops->get_dr(ctxt, 6); in check_dr_read()
3864 dr6 &= ~DR_TRAP_BITS; in check_dr_read()
3865 dr6 |= DR6_BD | DR6_ACTIVE_LOW; in check_dr_read()
3866 ctxt->ops->set_dr(ctxt, 6, dr6); in check_dr_read()
/linux-6.15/tools/testing/selftests/kvm/lib/x86/
H A Dsvm.c94 asm volatile ("mov %%dr6, %0" : "=r"(save->dr6) : : "memory"); in generic_svm_setup()
/linux-6.15/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()
404 to->dr6 = from->dr6; in __nested_copy_vmcb_save_to_cache()
593 svm->vcpu.arch.dr6 = svm->nested.save.dr6 | DR6_ACTIVE_LOW; in nested_vmcb02_prepare_save()
1017 vmcb12->save.dr6 = svm->vcpu.arch.dr6; in nested_svm_vmexit()
H A Dsvm.c2068 if (unlikely(value != vmcb->save.dr6)) { in svm_set_dr6()
2069 vmcb->save.dr6 = value; in svm_set_dr6()
2089 vcpu->arch.dr6 = svm->vmcb->save.dr6; in svm_sync_dirty_debug_regs()
2159 u32 payload = svm->vmcb->save.dr6 ^ DR6_ACTIVE_LOW; in db_interception()
2173 kvm_run->debug.arch.dr6 = svm->vmcb->save.dr6; in db_interception()
3553 "dr6:", save->dr6, "dr7:", save->dr7); in dump_vmcb()
H A Dsvm.h144 u64 dr6; member
H A Dsev.c843 save->dr6 = svm->vcpu.arch.dr6; in sev_es_sync_vmsa()
/linux-6.15/arch/x86/include/asm/
H A Dsvm.h324 u64 dr6; member
381 u64 dr6; member
H A Dkvm_host.h959 unsigned long dr6; member
/linux-6.15/tools/testing/selftests/kvm/include/x86/
H A Dsvm.h209 u64 dr6; member
/linux-6.15/arch/x86/include/uapi/asm/
H A Dkvm.h289 __u64 dr6; member
374 __u64 dr6; member
/linux-6.15/tools/arch/x86/include/uapi/asm/
H A Dkvm.h289 __u64 dr6; member
374 __u64 dr6; member
/linux-6.15/Documentation/arch/x86/x86_64/
H A Dfred.rst58 transient states due to %cr2 and/or %dr6, and it is no longer needed
/linux-6.15/arch/x86/kvm/vmx/
H A Dvmx.c5240 unsigned long cr2, dr6; in handle_exception_nmi() local
5336 dr6 = vmx_get_exit_qual(vcpu); in handle_exception_nmi()
5369 kvm_queue_exception_p(vcpu, DB_VECTOR, dr6); in handle_exception_nmi()
5372 kvm_run->debug.arch.dr6 = dr6 | DR6_ACTIVE_LOW; in handle_exception_nmi()
5614 vcpu->run->debug.arch.dr6 = DR6_BD | DR6_ACTIVE_LOW; in handle_dr()
5656 get_debugreg(vcpu->arch.dr6, 6); in vmx_sync_dirty_debug_regs()
5672 set_debugreg(vcpu->arch.dr6, 6); in vmx_set_dr6()
H A Dnested.c3971 exit_qual = vcpu->arch.dr6; in nested_vmx_inject_exception_vmexit()
/linux-6.15/arch/x86/coco/sev/
H A Dcore.c1366 vmsa->dr6 = AP_INIT_DR6_DEFAULT; in wakeup_cpu_via_vmgexit()
/linux-6.15/Documentation/virt/kvm/
H A Dapi.rst1328 __u64 dr6;