Skip to content

Commit c28caf5

Browse files
author
Requiem
committed
2 parents a6d15bb + c44e507 commit c28caf5

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/vmaware.hpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6626,6 +6626,16 @@ struct VM {
66266626
debug("FIRMWARE: C2 and C3 latencies indicate VM");
66276627
return true;
66286628
}
6629+
6630+
if (buffer_len >= 276) {
6631+
u64 hypervisor_vid = 0;
6632+
memcpy(&hypervisor_vid, buffer + 268, 8);
6633+
6634+
if (hypervisor_vid != 0) {
6635+
debug("FIRMWARE: FACP 'Hypervisor Vendor Identity' field is occupied");
6636+
return true;
6637+
}
6638+
}
66296639
}
66306640

66316641
return false;

0 commit comments

Comments
 (0)