Skip to content

Commit dee919d

Browse files
committed
KVM: SVM: fill in kvm_run->debug.arch.dr[67]
The corresponding code was added for VMX in commit 42dbaa5 ("KVM: x86: Virtualize debug registers, 2008-12-15) but never for AMD. Fix this. Signed-off-by: Paolo Bonzini <[email protected]>
1 parent f9336e3 commit dee919d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/x86/kvm/svm/svm.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1752,6 +1752,8 @@ static int db_interception(struct vcpu_svm *svm)
17521752
if (svm->vcpu.guest_debug &
17531753
(KVM_GUESTDBG_SINGLESTEP | KVM_GUESTDBG_USE_HW_BP)) {
17541754
kvm_run->exit_reason = KVM_EXIT_DEBUG;
1755+
kvm_run->debug.arch.dr6 = svm->vmcb->save.dr6;
1756+
kvm_run->debug.arch.dr7 = svm->vmcb->save.dr7;
17551757
kvm_run->debug.arch.pc =
17561758
svm->vmcb->save.cs.base + svm->vmcb->save.rip;
17571759
kvm_run->debug.arch.exception = DB_VECTOR;

0 commit comments

Comments
 (0)