hack to W/A NX paging fault under nested paging while virtualizing SMM under SVM

This commit is contained in:
Stanislav Shwartsman 2021-04-27 08:22:45 +00:00
parent 79d6a16e3b
commit 2d2ec5e0aa

View File

@ -1381,6 +1381,9 @@ bx_phy_address BX_CPU_C::translate_linear(bx_TLB_entry *tlbEntry, bx_address lad
#endif
#if BX_SUPPORT_SVM
if (BX_CPU_THIS_PTR in_svm_guest && SVM_NESTED_PAGING_ENABLED) {
// hack: ignore isExecute attribute in SMM mode under SVM virtualization
if (BX_CPU_THIS_PTR in_smm && rw == BX_EXECUTE) rw = BX_READ;
paddress = nested_walk(paddress, rw, 0);
}
#endif