mirror of https://github.com/bochs-emu/Bochs
intercept SMI support in SVM
This commit is contained in:
parent
6781067b55
commit
79d6a16e3b
|
@ -221,6 +221,11 @@ bool BX_CPU_C::handleAsyncEvent(void)
|
||||||
// INIT
|
// INIT
|
||||||
if (is_unmasked_event_pending(BX_EVENT_SMI) && SVM_GIF)
|
if (is_unmasked_event_pending(BX_EVENT_SMI) && SVM_GIF)
|
||||||
{
|
{
|
||||||
|
#if BX_SUPPORT_SVM
|
||||||
|
if (BX_CPU_THIS_PTR in_svm_guest) {
|
||||||
|
if (SVM_INTERCEPT(SVM_INTERCEPT0_SMI)) Svm_Vmexit(SVM_VMEXIT_SMI);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
clear_event(BX_EVENT_SMI); // clear SMI pending flag
|
clear_event(BX_EVENT_SMI); // clear SMI pending flag
|
||||||
enter_system_management_mode(); // would disable NMI when SMM was accepted
|
enter_system_management_mode(); // would disable NMI when SMM was accepted
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue