]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: check DR6/7 high-bits are clear only on long-mode
authorNadav Amit <nadav.amit@gmail.com>
Wed, 18 Jun 2014 14:19:23 +0000 (17:19 +0300)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 19 Jun 2014 10:52:14 +0000 (12:52 +0200)
commita8af0173109f821cf85a3e7719e6c244383555e2
treeb9b9d7ee6afe5d0e1864750b292abd2bb11fea53
parent0b77d1e267223e59b7c3f334274f048ebb37074d
KVM: x86: check DR6/7 high-bits are clear only on long-mode

When the guest sets DR6 and DR7, KVM asserts the high 32-bits are clear, and
otherwise injects a #GP exception. This exception should only be injected only
if running in long-mode.

Signed-off-by: Nadav Amit <namit@cs.technion.ac.il>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx.c
arch/x86/kvm/x86.h