Small fixes

This commit is contained in:
momo5502 2023-12-10 09:40:41 +01:00
parent 046df34929
commit 8d2b581adf
2 changed files with 7 additions and 7 deletions

View File

@ -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();

View File

@ -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()