KVM: nSVM: Fix IOIO bitmap evaluation
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 30 Jun 2014 08:54:17 +0000 (10:54 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 9 Jul 2014 16:09:55 +0000 (18:09 +0200)
commit9bf418335e24da995ea682a028926d7e1036be6f
tree2744a9564a101286b60272ff7eff4c216326d19c
parent62baf44cad3bc6b37115cc21e4228fe53d4f3474
KVM: nSVM: Fix IOIO bitmap evaluation

First, kvm_read_guest returns 0 on success. And then we need to take the
access size into account when testing the bitmap: intercept if any of
bits corresponding to the access is set.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm.c