]> 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>
Tue, 6 Mar 2012 14:39:22 +0000 (16:39 +0200)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 30 May 2012 23:43:12 +0000 (00:43 +0100)
commitb9c523c841fd2e14602d144f3259c0fefe2c0da6
tree252930e555158e2c589fd60eca05eb7ba9a8969b
parent50fcec93e8c917b4f6e1a3219207d351e6eae1b2
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>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
arch/x86/kvm/vmx.c