1
0
mirror of https://github.com/momo5502/hypervisor.git synced 2025-07-04 02:01:58 +00:00

Implement threading

This commit is contained in:
momo5502
2022-04-16 10:15:59 +02:00
parent 00e31a84f5
commit 4c3e5d78ac
3 changed files with 113 additions and 3 deletions

View File

@ -168,14 +168,14 @@ public:
, irp_(driver_object, DEV_NAME, DOS_DEV_NAME)
{
debug_log("Driver started\n");
this->trampoline = HookCreateFile(this->hypervisor_);
this->trampoline_ = HookCreateFile(this->hypervisor_);
}
~global_driver()
{
debug_log("Unloading driver\n");
this->hypervisor_.disable_all_ept_hooks();
memory::free_non_paged_memory(this->trampoline);
memory::free_non_paged_memory(this->trampoline_);
}
global_driver(global_driver&&) noexcept = delete;
@ -193,7 +193,7 @@ private:
hypervisor hypervisor_{};
sleep_callback sleep_callback_{};
irp irp_{};
void* trampoline{nullptr};
void* trampoline_{nullptr};
void sleep_notification(const sleep_callback::type type)
{