]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit65e201b9f21550ac85b921e59db046375f5c0480
tree2744a9564a101286b60272ff7eff4c216326d19c
parent48ce41780d0647a76b47be29dd73559348c36bd9
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