Skip to contentSkip to conversation

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

PATCH linmiaohe 1 participant 1 message Feb 8, 2020 KVM

lore
Share & tools
lore

linmiaohe

author Reviewed-by
#0 lore raw
Quoted 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")

Looks fine for me. Thanks.