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

Don't allocate all vm state in a continuous block

This commit is contained in:
momo5502
2022-04-02 20:22:20 +02:00
parent 4253953003
commit 4bb5dca1ea
4 changed files with 115 additions and 87 deletions

View File

@ -18,7 +18,8 @@ public:
void disable();
private:
vmx::vm_state* vm_states_{nullptr};
uint32_t vm_state_count_{0};
vmx::vm_state** vm_states_{nullptr};
void enable_core(uint64_t system_directory_table_base);
bool try_enable_core(uint64_t system_directory_table_base);