x86/AMD: Fix nested svm crash due to assertion in __virt_to_maddr
authorSuravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Tue, 13 Aug 2013 12:22:14 +0000 (14:22 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 13 Aug 2013 12:22:14 +0000 (14:22 +0200)
commit85fc517ec3055e8e8d9c9e36e15a81e630237252
tree9b268fb99f72f77824deb9e5573329fc06d441c8
parent73f18583dd824f0e49f65149ef603600ce31b8ee
x86/AMD: Fix nested svm crash due to assertion in __virt_to_maddr

Fix assertion in __virt_to_maddr when starting nested SVM guest
in debug mode. Investigation has shown that svm_vmsave/svm_vmload
make use of __pa() with invalid address.

Signed-off-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Reviewed-by: Tim Deegan <tim@xen.org>
xen/arch/x86/hvm/svm/svm.c
xen/include/asm-x86/hvm/svm/svm.h