1
0
mirror of https://github.com/momo5502/hypervisor.git synced 2025-09-03 23:47:25 +00:00

More tests

This commit is contained in:
momo5502
2022-04-18 20:39:39 +02:00
parent 378c52eb47
commit ce27636f3c
2 changed files with 4 additions and 12 deletions

View File

@@ -194,17 +194,8 @@ namespace vmx
guest_context.exit_vm = true;
}
auto* hook = this->ept_hooks;
while (hook)
{
if (hook->physical_base_address == reinterpret_cast<uint64_t>(PAGE_ALIGN(
guest_context.guest_physical_address)))
{
break;
}
hook = hook->next_hook;
}
const auto physical_base_address = reinterpret_cast<uint64_t>(PAGE_ALIGN(guest_context.guest_physical_address));
auto* hook = this->find_ept_hook(physical_base_address);
if (!hook)
{
return;