mirror of
https://github.com/momo5502/hypervisor.git
synced 2025-04-19 05:32:55 +00:00
Small fixes
This commit is contained in:
parent
046df34929
commit
8d2b581adf
@ -30,11 +30,6 @@ namespace
|
||||
return feature_control.lock_bit && feature_control.enable_vmx_outside_smx;
|
||||
}
|
||||
|
||||
bool is_virtualization_supported()
|
||||
{
|
||||
return is_vmx_supported() && is_vmx_available();
|
||||
}
|
||||
|
||||
bool is_hypervisor_present()
|
||||
{
|
||||
cpuid_eax_01 data{};
|
||||
@ -129,11 +124,16 @@ hypervisor::hypervisor()
|
||||
|
||||
instance = this;
|
||||
|
||||
if (!is_virtualization_supported())
|
||||
if (!is_vmx_supported())
|
||||
{
|
||||
throw std::runtime_error("VMX not supported on this machine");
|
||||
}
|
||||
|
||||
if (!is_vmx_available())
|
||||
{
|
||||
throw std::runtime_error("VMX not available on this machine");
|
||||
}
|
||||
|
||||
debug_log("VMX supported!\n");
|
||||
this->allocate_vm_states();
|
||||
this->enable();
|
||||
|
@ -37,7 +37,7 @@ namespace
|
||||
|
||||
driver create_driver()
|
||||
{
|
||||
return driver{std::filesystem::absolute(DRIVER_NAME), "HyperHook"};
|
||||
return driver{std::filesystem::absolute(DRIVER_NAME), "HyperHookDriver"};
|
||||
}
|
||||
|
||||
driver_device& get_driver_device()
|
||||
|
Loading…
x
Reference in New Issue
Block a user