Skip to content

Commit f4de583

Browse files
authored
Merge pull request #319 from dmfrpro/pci_scan
Add checks for PCI registry keys for KVM & Xen
2 parents 529b4e0 + bafa48b commit f4de583

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

src/vmaware.hpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
* - struct for internal cpu operations => line 746
3131
* - struct for internal memoization => line 1200
3232
* - struct for internal utility functions => line 1324
33-
* - struct for internal core components => line 10199
33+
* - struct for internal core components => line 10202
3434
* - start of VM detection technique list => line 2520
35-
* - start of public VM detection functions => line 10863
36-
* - start of externally defined variables => line 11813
35+
* - start of public VM detection functions => line 10866
36+
* - start of externally defined variables => line 11816
3737
*
3838
*
3939
* ============================== EXAMPLE ===================================
@@ -3253,6 +3253,7 @@ struct VM {
32533253
key(brands::WINE, "HKLM\\SOFTWARE\\Wine");
32543254

32553255
// Xen
3256+
key(brands::KVM, "HKLM\\SYSTEM\\CurrentControlSet\\Enum\\PCI\\VEN_5853*");
32563257
key(brands::XEN, "HKLM\\HARDWARE\\ACPI\\DSDT\\xen");
32573258
key(brands::XEN, "HKLM\\HARDWARE\\ACPI\\FADT\\xen");
32583259
key(brands::XEN, "HKLM\\HARDWARE\\ACPI\\RSDT\\xen");
@@ -3263,6 +3264,7 @@ struct VM {
32633264
key(brands::XEN, "HKLM\\SYSTEM\\ControlSet001\\Services\\xenvdb");
32643265

32653266
// KVM
3267+
key(brands::KVM, "HKLM\\SYSTEM\\CurrentControlSet\\Enum\\PCI\\VEN_1AF4*");
32663268
key(brands::KVM, "HKLM\\SYSTEM\\ControlSet001\\Services\\vioscsi");
32673269
key(brands::KVM, "HKLM\\SYSTEM\\ControlSet001\\Services\\viostor");
32683270
key(brands::KVM, "HKLM\\SYSTEM\\ControlSet001\\Services\\VirtIO-FS Service");

src/vmaware_MIT.hpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,10 @@
5252
* - struct for internal cpu operations => line 761
5353
* - struct for internal memoization => line 1215
5454
* - struct for internal utility functions => line 1339
55-
* - struct for internal core components => line 9985
55+
* - struct for internal core components => line 9988
5656
* - start of VM detection technique list => line 2535
57-
* - start of public VM detection functions => line 10649
58-
* - start of externally defined variables => line 11592
57+
* - start of public VM detection functions => line 10652
58+
* - start of externally defined variables => line 11595
5959
*
6060
*
6161
* ============================== EXAMPLE ===================================
@@ -3268,6 +3268,7 @@ struct VM {
32683268
key(brands::WINE, "HKLM\\SOFTWARE\\Wine");
32693269

32703270
// Xen
3271+
key(brands::KVM, "HKLM\\SYSTEM\\CurrentControlSet\\Enum\\PCI\\VEN_5853*");
32713272
key(brands::XEN, "HKLM\\HARDWARE\\ACPI\\DSDT\\xen");
32723273
key(brands::XEN, "HKLM\\HARDWARE\\ACPI\\FADT\\xen");
32733274
key(brands::XEN, "HKLM\\HARDWARE\\ACPI\\RSDT\\xen");
@@ -3278,6 +3279,7 @@ struct VM {
32783279
key(brands::XEN, "HKLM\\SYSTEM\\ControlSet001\\Services\\xenvdb");
32793280

32803281
// KVM
3282+
key(brands::KVM, "HKLM\\SYSTEM\\CurrentControlSet\\Enum\\PCI\\VEN_1AF4*");
32813283
key(brands::KVM, "HKLM\\SYSTEM\\ControlSet001\\Services\\vioscsi");
32823284
key(brands::KVM, "HKLM\\SYSTEM\\ControlSet001\\Services\\viostor");
32833285
key(brands::KVM, "HKLM\\SYSTEM\\ControlSet001\\Services\\VirtIO-FS Service");

0 commit comments

Comments
 (0)