File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -476,6 +476,12 @@ int exception_vmexit_handler(struct vcpu *vcpu)
476
476
vcpu -> arch_vcpu .exception_info .exception = exception_vector ;
477
477
vcpu -> arch_vcpu .exception_info .error = int_err_code ;
478
478
479
+ if (exception_vector == IDT_MC ) {
480
+ /* just print error message for #MC, it then will be injected
481
+ * back to guest */
482
+ pr_fatal ("Exception #MC got from guest!" );
483
+ }
484
+
479
485
TRACE_4I (TRC_VMEXIT_EXCEPTION_OR_NMI ,
480
486
exception_vector , int_err_code , 2 , 0 );
481
487
Original file line number Diff line number Diff line change @@ -974,9 +974,9 @@ static void init_exec_ctrl(struct vcpu *vcpu)
974
974
975
975
/* Set up guest exception mask bitmap setting a bit * causes a VM exit
976
976
* on corresponding guest * exception - pg 2902 24.6.3
977
- * enable VM exit on MC and DB
977
+ * enable VM exit on MC only
978
978
*/
979
- value32 = (1 << IDT_MC ) | ( 1u << IDT_DB ) ;
979
+ value32 = (1 << IDT_MC );
980
980
exec_vmwrite (VMX_EXCEPTION_BITMAP , value32 );
981
981
982
982
/* Set up page fault error code mask - second paragraph * pg 2902
You can’t perform that action at this time.
0 commit comments