x86/vvmx: Fixes to VMWRITE emulation
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 1 Nov 2018 17:37:48 +0000 (17:37 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 23 Nov 2018 13:46:59 +0000 (13:46 +0000)
commit68a15d6bd84ad3e66f997940accaf9485352e604
treec63f0754613569610e562c4bc6d5be03755a8985
parent3946cc5a6f3779138fbfdacdafcbc42c10484752
x86/vvmx: Fixes to VMWRITE emulation

 * Don't assume that decode_vmx_inst() always returns X86EMUL_EXCEPTION.
 * The okay boolean is never written, making the else case dead.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Sergey Dyasli <sergey.dyasli@citrix.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
xen/arch/x86/hvm/vmx/vvmx.c