SVM: Fixed EXITINFO error code after nested page fault (prevented Hyper-V from running)

This commit is contained in:
Stanislav Shwartsman 2021-04-22 11:12:26 +00:00
parent adf209fe9e
commit 4e41530b8a
1 changed files with 2 additions and 2 deletions

View File

@ -1626,9 +1626,9 @@ void BX_CPU_C::nested_page_fault(unsigned fault, bx_phy_address guest_paddr, uns
error_code |= ERROR_CODE_ACCESS; // I/D = 1
if (is_page_walk)
error_code |= BX_CONST64(1) << 32;
else
error_code |= BX_CONST64(1) << 33;
else
error_code |= BX_CONST64(1) << 32;
Svm_Vmexit(SVM_VMEXIT_NPF, error_code, guest_paddr);
}