Skip to content
Commit 45981ded authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

KVM: VMX: pass correct DR6 for GD userspace exit



When KVM_EXIT_DEBUG is raised for the disabled-breakpoints case (DR7.GD),
DR6 was incorrectly copied from the value in the VM.  Instead,
DR6.BD should be set in order to catch this case.

On AMD this does not need any special code because the processor triggers
a #DB exception that is intercepted.  However, the testcase would fail
without the previous patch because both DR6.BS and DR6.BD would be set.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent d67668e9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment