We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cbca23a commit 0b33602Copy full SHA for 0b33602
1 file changed
src/vmaware.hpp
@@ -12693,7 +12693,13 @@ struct VM {
12693
};
12694
12695
const bool hv_present = (check(VM::HYPERVISOR_BIT) || check(VM::HYPERVISOR_STR));
12696
- const bool has_hyper_x = (detected_brand(VM::HYPERVISOR_BIT) == brand_enum::HYPERV_ARTIFACT);
+ const bool has_hyper_x = []() {
12697
+ if (check(VM::HYPERVISOR_BIT)) {
12698
+ return false;
12699
+ }
12700
+
12701
+ return memo::cache_table[VM::HYPERVISOR_BIT].brand_name == brand_enum::HYPERV_ARTIFACT;
12702
+ }();
12703
12704
// rule 1: if VM::FIRMWARE is detected, so should VM::HYPERVISOR_BIT or VM::HYPERVISOR_STR
12705
const enum brand_enum firmware_brand = detected_brand(VM::FIRMWARE);
0 commit comments