KVM: SVM: Fix nested msr intercept handling
commit4c7da8cb43c09e71a405b5aeaa58a1dbac3c39e9
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 19 Feb 2010 15:23:05 +0000 (19 16:23 +0100)
committerAvi Kivity <avi@redhat.com>
Sun, 25 Apr 2010 09:34:19 +0000 (25 12:34 +0300)
tree69c28e6a470b4d6b33e2d61d81e370557a4485b5
parent6c3bd3d7660c35a703073b81eccfd5a3b7c15295
KVM: SVM: Fix nested msr intercept handling

The nested_svm_exit_handled_msr() function maps only one
page of the guests msr permission bitmap. This patch changes
the code to use kvm_read_guest to fix the bug.

Cc: stable@kernel.org
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/svm.c