KVM: x86: Mask off reserved bit from #DB exception payload
linmiaohe
Reviewed-byQuoted 5 lines · Oliver Upton
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 f10c729ff965 ("kvm: vmx: Defer setting of DR6 until #DB delivery")Signed-off-by Oliver Upton <[email protected]>
Looks fine for me. Thanks.
Reviewed-by Miaohe Lin <[email protected]>