Skip to content
Commit 84208bc5 authored by Oliver Upton's avatar Oliver Upton Committed by Paul Gortmaker
Browse files

KVM: x86: Mask off reserved bit from #DB exception payload

commit 307f1cfa upstream.

KVM defines the #DB payload as compatible with the 'pending debug
exceptions' field under VMX, not DR6. Mask off bit 12 when applying the
payload to DR6, as it is reserved on DR6 but not the 'pending debug
exceptions' field.

Fixes: f10c729f

 ("kvm: vmx: Defer setting of DR6 until #DB delivery")
Signed-off-by: default avatarOliver Upton <oupton@google.com>
Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
Signed-off-by: default avatarPaul Gortmaker <paul.gortmaker@windriver.com>
parent f9a0a0c9
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