1
0
mirror of https://github.com/momo5502/hypervisor.git synced 2025-07-03 17:51:52 +00:00

Ept hooking

This commit is contained in:
momo5502
2022-04-14 18:47:17 +02:00
parent b141d43497
commit 2acac5bee2
11 changed files with 425 additions and 260 deletions

View File

@ -19,6 +19,9 @@ public:
bool is_enabled() const;
bool install_ept_hook(void* destination, const void* source, size_t length);
void disable_all_ept_hooks() const;
private:
uint32_t vm_state_count_{0};
vmx::state** vm_states_{nullptr};
@ -30,5 +33,8 @@ private:
void allocate_vm_states();
void free_vm_states();
bool try_install_ept_hook_on_core(void* destination, const void* source, size_t length);
void install_ept_hook_on_core(void* destination, const void* source, size_t length);
vmx::state* get_current_vm_state() const;
};