The corresponding code was added for VMX in commit 42dbaa5a057 ("KVM: x86: Virtualize debug registers, 2008-12-15) but never for AMD. Fix this.
Cc: stable@vger.kernel.org Fixes: 42dbaa5a057 ("KVM: x86: Virtualize debug registers") Signed-off-by: Paolo Bonzini pbonzini@redhat.com --- arch/x86/kvm/svm/svm.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/arch/x86/kvm/svm/svm.c b/arch/x86/kvm/svm/svm.c index 8447ceb02c74..dbcf4198a9fe 100644 --- a/arch/x86/kvm/svm/svm.c +++ b/arch/x86/kvm/svm/svm.c @@ -1732,6 +1732,8 @@ static int db_interception(struct vcpu_svm *svm) if (svm->vcpu.guest_debug & (KVM_GUESTDBG_SINGLESTEP | KVM_GUESTDBG_USE_HW_BP)) { kvm_run->exit_reason = KVM_EXIT_DEBUG; + kvm_run->debug.arch.dr6 = svm->vmcb->save.dr6; + kvm_run->debug.arch.dr7 = svm->vmcb->save.dr7; kvm_run->debug.arch.pc = svm->vmcb->save.cs.base + svm->vmcb->save.rip; kvm_run->debug.arch.exception = DB_VECTOR;
Hi
[This is an automated email]
This commit has been processed because it contains a "Fixes:" tag fixing commit: 42dbaa5a0577 ("KVM: x86: Virtualize debug registers").
The bot has tested the following trees: v5.6.10, v5.4.38, v4.19.120, v4.14.178, v4.9.221, v4.4.221.
v5.6.10: Build OK! v5.4.38: Failed to apply! Possible dependencies: Unable to calculate
v4.19.120: Failed to apply! Possible dependencies: Unable to calculate
v4.14.178: Failed to apply! Possible dependencies: Unable to calculate
v4.9.221: Failed to apply! Possible dependencies: Unable to calculate
v4.4.221: Failed to apply! Possible dependencies: Unable to calculate
NOTE: The patch will not be queued to stable trees until it is upstream.
How should we proceed with this patch?
linux-stable-mirror@lists.linaro.org