vvmx: replace vmreturn() by vmsucceed() and vmfail*()
authorHaozhong Zhang <haozhong.zhang@intel.com>
Tue, 20 Dec 2016 08:53:39 +0000 (09:53 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 20 Dec 2016 08:53:39 +0000 (09:53 +0100)
commit44d3196903f3ae5ac3d27da626107131e3e35603
tree21d0d60fdc56c8356e479c9b5d1b9d8bb3e3abbd
parent1cb650c3191f8b85defb4d2ab6f183fa2926e494
vvmx: replace vmreturn() by vmsucceed() and vmfail*()

Replace vmreturn() by vmsucceed(), vmfail(), vmfail_valid() and
vmfail_invalid(), which are consistent to the pseudo code on Intel
SDM, and allow to return VM instruction error numbers to L1
hypervisor.

Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/vmx/vvmx.c
xen/include/asm-x86/hvm/vmx/vmcs.h
xen/include/asm-x86/processor.h