|
|
|
@ -184,7 +184,13 @@ auto mm::init() -> vmxroot_error_t
|
|
|
|
|
const auto pt_phys =
|
|
|
|
|
translate(reinterpret_cast<u64>(pt));
|
|
|
|
|
|
|
|
|
|
if (!pdpt_phys || !pd_phys || !pt_phys)
|
|
|
|
|
const auto shadHookData_phys =
|
|
|
|
|
translate(reinterpret_cast<u64>(&ShadowHookData));
|
|
|
|
|
|
|
|
|
|
const auto shadow_phys =
|
|
|
|
|
translate(reinterpret_cast<u64>(&shadow));
|
|
|
|
|
|
|
|
|
|
if (!pdpt_phys || !pd_phys || !pt_phys || !shadHookData_phys || !shadow_phys)
|
|
|
|
|
return vmxroot_error_t::invalid_host_virtual;
|
|
|
|
|
|
|
|
|
|
// setup mapping page table entries...
|
|
|
|
|