[VMX] __vmread() and __vmwrite() now BUG on failure, rather than
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 8 Nov 2006 16:43:50 +0000 (16:43 +0000)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Wed, 8 Nov 2006 16:43:50 +0000 (16:43 +0000)
commit49812b9e30c1d3e9302bb2c30e648d7f9a23e0c8
tree3313635c3a3d763ed0e6e555e596fd8a523a4e1f
parentaa06b89d3b488d51bb3df2abaa183de4cffcc7b8
[VMX] __vmread() and __vmwrite() now BUG on failure, rather than
returning the error to the caller.

None of our vmcs reads/writes should fail. In fact many callers were
ignoring failures, which can hide bugs (in fact it hid one in
vmx_restore_dr(), which was incorrectly using __vmread() before
the vmcs was loaded).

__vmread_safe() is used by the vmcs dump function, which is the only
function which can legitimately fail a vmcs access.

Signed-off-by: Keir Fraser <keir@xensource.com>
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/svm/vmcb.c
xen/arch/x86/hvm/vmx/io.c
xen/arch/x86/hvm/vmx/vmcs.c
xen/arch/x86/hvm/vmx/vmx.c
xen/include/asm-x86/hvm/vmx/vmx.h