hack to W/A NX paging fault under nested paging while virtualizing SMM under SVM
This commit is contained in:
parent
79d6a16e3b
commit
2d2ec5e0aa
@ -1381,6 +1381,9 @@ bx_phy_address BX_CPU_C::translate_linear(bx_TLB_entry *tlbEntry, bx_address lad
|
|||||||
#endif
|
#endif
|
||||||
#if BX_SUPPORT_SVM
|
#if BX_SUPPORT_SVM
|
||||||
if (BX_CPU_THIS_PTR in_svm_guest && SVM_NESTED_PAGING_ENABLED) {
|
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);
|
paddress = nested_walk(paddress, rw, 0);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user