]> git.karo-electronics.de Git - karo-tx-linux.git/commit
KVM: nVMX: Fix erroneous exception bitmap check
authorNadav Har'El <nyh@math.technion.ac.il>
Wed, 9 May 2012 13:10:44 +0000 (16:10 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 May 2012 16:32:20 +0000 (09:32 -0700)
commit8dd2cb2a8d183d59f6d41dd71db550a306cc55eb
treeb71839978afae866788ede4a6b13a0811932fff1
parent044873c9fc637a88225f0e01bedb9daee04524ed
KVM: nVMX: Fix erroneous exception bitmap check

(cherry picked from commit 9587190107d0c0cbaccbf7bf6b0245d29095a9ae)

The code which checks whether to inject a pagefault to L1 or L2 (in
nested VMX) was wrong, incorrect in how it checked the PF_VECTOR bit.
Thanks to Dan Carpenter for spotting this.

Signed-off-by: Nadav Har'El <nyh@il.ibm.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/x86/kvm/vmx.c