mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
x86/vmx: Don't deliver #MC with an error code
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com> Reviewed-by: Jan Beulich <jbeulich@suse.com> Acked-by: Kevin Tian <kevin.tian@intel.com> Release-acked-by: Wei Liu <wei.liu2@citrix.com>
This commit is contained in:
1 parent
9586cba338
commit
892d191df6
1 file changed
+1
-1
@@ -2915,7 +2915,7 @@ static int vmx_msr_write_intercept(unsigned int msr, uint64_t msr_content)
|
||||
|
||||
if ( (rc < 0) ||
|
||||
(msr_content && (vmx_add_host_load_msr(msr) < 0)) )
|
||||
hvm_inject_hw_exception(TRAP_machine_check, 0);
|
||||
hvm_inject_hw_exception(TRAP_machine_check, HVM_DELIVER_NO_ERROR_CODE);
|
||||
else
|
||||
__vmwrite(GUEST_IA32_DEBUGCTL, msr_content);
|
||||
|
||||
|
||||