Skip to content

Commit 83f6d4e

Browse files
committed
added extra binaries
1 parent 231c89d commit 83f6d4e

File tree

3 files changed

+13
-19
lines changed

3 files changed

+13
-19
lines changed

TODO.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,12 @@
1010
- [ ] fix "dmidecode not found" error
1111
- [ ] implement techniques from here https://www.cyberciti.biz/faq/linux-determine-virtualization-technology-command/
1212
- [ ] implement techniques from virt-what
13-
- empty /sys/class dirs:
13+
- implement empty /sys/class dirs:
1414
- iommu
1515
- power_supply
16-
17-
QEMU default: 0x1234
18-
Intel: 0x8086
19-
AMD: 0x1022
20-
VMware: 0x15ad
21-
Red Hat/Qumranet: 0x1af4
22-
In the QEMU source:
23-
include/hw/pci/pci.h
24-
include/hw/pci/pci_ids.h
16+
- check for presence of /dev/virtio-ports dir
17+
18+
2519

2620
# Distant plans
2721
- add the library to conan.io when released

auxiliary/binaries/disk_serial.exe

17.5 KB
Binary file not shown.

src/vmaware.hpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9072,7 +9072,7 @@ struct VM {
90729072
case 0x1af41110: // Inter-VM shared memory
90739073
return true;
90749074

9075-
// VMware
9075+
// VMware
90769076
case 0x15ad0405: // SVGA II Adapter
90779077
case 0x15ad0710: // SVGA Adapter
90789078
case 0x15ad0720: // VMXNET Ethernet Controller
@@ -9104,7 +9104,7 @@ struct VM {
91049104
case 0x0e0ff80a: // Smoker FX2
91059105
return found(brands::VMWARE, dev);
91069106

9107-
// Red Hat + QEMU
9107+
// Red Hat + QEMU
91089108
case 0x1b360001: // Red Hat, Inc. QEMU PCI-PCI bridge
91099109
case 0x1b360002: // Red Hat, Inc. QEMU PCI 16550A Adapter
91109110
case 0x1b360003: // Red Hat, Inc. QEMU PCI Dual-port 16550A Adapter
@@ -9121,29 +9121,29 @@ struct VM {
91219121
case 0x1b360100: // Red Hat, Inc. QXL paravirtual graphic card
91229122
return found(brands::QEMU, dev);
91239123

9124-
// QEMU
9124+
// QEMU
91259125
case 0x06270001: // Adomax Technology Co., Ltd QEMU Tablet
91269126
case 0x1d1d1f1f: // CNEX Labs QEMU NVM Express LightNVM Controller
91279127
case 0x80865845: // Intel Corporation QEMU NVM Express Controller
91289128
case 0x1d6b0200: // Linux Foundation Qemu Audio Device
91299129
return found(brands::QEMU, dev);
91309130

9131-
// vGPUs (mostly NVIDIA)
9131+
// vGPUs (mostly NVIDIA)
91329132
case 0x10de0fe7: // GK107GL [GRID K100 vGPU]
91339133
case 0x10de0ff7: // GK107GL [GRID K140Q vGPU]
91349134
case 0x10de118d: // GK104GL [GRID K200 vGPU]
91359135
case 0x10de11b0: // GK104GL [GRID K240Q\K260Q vGPU]
91369136
case 0x1ec6020f: // Vastai Technologies SG100 vGPU
91379137
return true;
91389138

9139-
// VirtualBox
9139+
// VirtualBox
91409140
case 0x80ee0021: // USB Tablet
91419141
case 0x80ee0022: // multitouch tablet
91429142
case 0x80eebeef: // InnoTek Systemberatung GmbH VirtualBox Graphics Adapter
91439143
case 0x80eecafe: // InnoTek Systemberatung GmbH VirtualBox Guest Service
91449144
return found(brands::VBOX, dev);
91459145

9146-
// Hyper-V
9146+
// Hyper-V
91479147
case 0x1f3f9002: // 3SNIC Ltd SSSNIC Ethernet VF Hyper-V
91489148
case 0x1f3f9004: // 3SNIC Ltd SSSNIC Ethernet SDI VF Hyper-V
91499149
case 0x1f3f9009: // 3SNIC Ltd SSSFC VF Hyper-V
@@ -9154,13 +9154,13 @@ struct VM {
91549154
}
91559155
return found(brands::HYPERV, dev);
91569156

9157-
// Parallels
9157+
// Parallels
91589158
case 0x1ab84000: // Virtual Machine Communication Interface
91599159
case 0x1ab84005: // Accelerated Virtual Video Adapter
91609160
case 0x1ab84006: // Memory Ballooning Controller
91619161
return found(brands::PARALLELS, dev);
91629162

9163-
// Xen
9163+
// Xen
91649164
case 0x5853c000: // XenSource, Inc. Citrix XenServer PCI Device for Windows Update
91659165
case 0xfffd0101: // XenSource, Inc. PCI Event Channel Controller
91669166
case 0x5853c147: // XenSource, Inc. Virtualized Graphics Device
@@ -9169,7 +9169,7 @@ struct VM {
91699169
case 0x58530001: // XenSource, Inc. Xen Platform Device
91709170
return found(brands::XEN, dev);
91719171

9172-
// Connectix (VirtualPC) OHCI USB 1.1 controller
9172+
// Connectix (VirtualPC) OHCI USB 1.1 controller
91739173
case 0x29556e61: return found(brands::VPC, dev);
91749174
}
91759175

0 commit comments

Comments
 (0)