KVM: x86: fix DR6 delivery for various cases of #DB injection
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 May 2020 11:33:20 +0000 (07:33 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 7 May 2020 10:13:41 +0000 (06:13 -0400)
commit4d5523cfd5d298c58743eb31c003886cfc856709
treea5b7397fd37cca52f7ef77d8e91d0e6a83188f96
parentb9b2782cd55aaf5a65573df99376cf391941cb66
KVM: x86: fix DR6 delivery for various cases of #DB injection

Go through kvm_queue_exception_p so that the payload is correctly delivered
through the exit qualification, and add a kvm_update_dr6 call to
kvm_deliver_exception_payload that is needed on AMD.

Reported-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c