Skip to content

Commit

Permalink
Small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
momo5502 committed Dec 10, 2023
1 parent 046df34 commit 8d2b581
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions src/driver/hypervisor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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{};
Expand Down Expand Up @@ -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();
Expand Down
2 changes: 1 addition & 1 deletion src/library/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 8d2b581

Please sign in to comment.