]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Mask off reserved bit from #DB exception payload
authorOliver Upton <oupton@google.com>
Fri, 7 Feb 2020 10:36:04 +0000 (02:36 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 12 Feb 2020 11:34:09 +0000 (12:34 +0100)
commit893ca7450d3ba3f4c2ecd7fdcce98ab096fef5d8
treea4f9f25d765671602fc6c28db0333348eb47fa9c
parenta231a9558e5474ea4beac14e6653c6399133b1f0
KVM: x86: Mask off reserved bit from #DB exception payload

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: f42b2b6075da ("kvm: vmx: Defer setting of DR6 until #DB delivery")
Signed-off-by: Oliver Upton <oupton@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c