]> xenbits.xensource.com Git - people/iwj/xen.git/commitdiff
x86/emul: Don't deliver #UD with an error code
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 24 Nov 2016 15:23:38 +0000 (15:23 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 25 Nov 2016 10:48:10 +0000 (10:48 +0000)
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/hvm/emulate.c

index 5f349910838866dec0491825eeb6781519d3fb7f..f1f6e2f7decad6b1261787f5617110eab7ac736b 100644 (file)
@@ -1696,7 +1696,8 @@ static int hvmemul_vmfunc(
 
     rc = hvm_funcs.altp2m_vcpu_emulate_vmfunc(ctxt->regs);
     if ( rc != X86EMUL_OKAY )
-        hvmemul_inject_hw_exception(TRAP_invalid_op, 0, ctxt);
+        hvmemul_inject_hw_exception(TRAP_invalid_op, HVM_DELIVER_NO_ERROR_CODE,
+                                    ctxt);
 
     return rc;
 }