Codebase list virt-what / f317e78
Add support for Nutanix Acropolis Hypervisor (AHV) (RHBZ#1756381). Thanks: Cristian Seres for providing access to a guest. Richard W.M. Jones 4 years ago
10 changed file(s) with 286 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
5050 lkvm-arm \
5151 lx86 \
5252 lxc \
53 nutanix-ahv \
5354 parallels-desktop \
5455 ppc64-baremetal \
5556 ppc64-kvm \
9293 tests/lkvm-arm/Makefile
9394 tests/lx86/Makefile
9495 tests/lxc/Makefile
96 tests/nutanix-ahv/Makefile
9597 tests/parallels-desktop/Makefile
9698 tests/ppc64-baremetal/Makefile
9799 tests/ppc64-kvm/Makefile
0 # Makefile for virt-what
1 # Copyright (C) 2008-2011 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 CLEANFILES = *~
18
19 TESTS = test.sh
20
21 EXTRA_DIST = \
22 test.sh \
23 proc/cpuinfo \
24 proc/self/status \
25 sbin/dmidecode \
26 sbin/uname \
27 sbin/virt-what-cpuid-helper
0 processor : 0
1 vendor_id : GenuineIntel
2 cpu family : 15
3 model : 6
4 model name : Intel(R) Xeon(R) Silver 4114 CPU @ 2.20GHz
5 stepping : 1
6 microcode : 0x1
7 cpu MHz : 2199.998
8 cache size : 16384 KB
9 physical id : 0
10 siblings : 1
11 core id : 0
12 cpu cores : 1
13 apicid : 0
14 initial apicid : 0
15 fpu : yes
16 fpu_exception : yes
17 cpuid level : 13
18 wp : yes
19 flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ss syscall nx pdpe1gb rdtscp lm constant_tsc nopl cpuid tsc_known_freq pni pclmulqdq ssse3 fma cx16 pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand hypervisor lahf_lm abm 3dnowprefetch invpcid_single pti ssbd ibrs ibpb stibp fsgsbase tsc_adjust bmi1 hle avx2 smep bmi2 erms invpcid rtm mpx avx512f avx512dq rdseed adx smap clflushopt avx512cd avx512bw avx512vl xsaveopt xsavec xgetbv1 arat md_clear
20 bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs
21 bogomips : 4399.99
22 clflush size : 64
23 cache_alignment : 128
24 address sizes : 46 bits physical, 48 bits virtual
25 power management:
26
0 Name: cat
1 Umask: 0022
2 State: R (running)
3 Tgid: 18508
4 Ngid: 0
5 Pid: 18508
6 PPid: 18506
7 TracerPid: 0
8 Uid: 0 0 0 0
9 Gid: 0 0 0 0
10 FDSize: 64
11 Groups: 0
12 NStgid: 18508
13 NSpid: 18508
14 NSpgid: 18506
15 NSsid: 1945
16 VmPeak: 5392 kB
17 VmSize: 5392 kB
18 VmLck: 0 kB
19 VmPin: 0 kB
20 VmHWM: 760 kB
21 VmRSS: 760 kB
22 RssAnon: 68 kB
23 RssFile: 692 kB
24 RssShmem: 0 kB
25 VmData: 312 kB
26 VmStk: 132 kB
27 VmExe: 28 kB
28 VmLib: 1456 kB
29 VmPTE: 48 kB
30 VmSwap: 0 kB
31 HugetlbPages: 0 kB
32 CoreDumping: 0
33 THP_enabled: 1
34 Threads: 1
35 SigQ: 3/7359
36 SigPnd: 0000000000000000
37 ShdPnd: 0000000000000000
38 SigBlk: 0000000000000000
39 SigIgn: 0000000000000000
40 SigCgt: 0000000000000000
41 CapInh: 0000000000000000
42 CapPrm: 0000003fffffffff
43 CapEff: 0000003fffffffff
44 CapBnd: 0000003fffffffff
45 CapAmb: 0000000000000000
46 NoNewPrivs: 0
47 Seccomp: 0
48 Speculation_Store_Bypass: thread vulnerable
49 Cpus_allowed: ffff,ffffffff,ffffffff,ffffffff,ffffffff,ffffffff,ffffffff,ffffffff
50 Cpus_allowed_list: 0-239
51 Mems_allowed: 00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000000,00000001
52 Mems_allowed_list: 0
53 voluntary_ctxt_switches: 0
54 nonvoluntary_ctxt_switches: 2
0 #!/bin/sh -
1 cat <<'EOF'
2 i# dmidecode 3.2
3 Getting SMBIOS data from sysfs.
4 SMBIOS 2.8 present.
5 9 structures occupying 486 bytes.
6 Table at 0x000F73C0.
7
8 Handle 0x0000, DMI type 0, 24 bytes
9 BIOS Information
10 Vendor: SeaBIOS
11 Version: 1.9.1-5.el6
12 Release Date: 04/01/2014
13 Address: 0xE8000
14 Runtime Size: 96 kB
15 ROM Size: 64 kB
16 Characteristics:
17 BIOS characteristics not supported
18 Targeted content distribution is supported
19 BIOS Revision: 0.0
20
21 Handle 0x0100, DMI type 1, 27 bytes
22 System Information
23 Manufacturer: Nutanix
24 Product Name: AHV
25 Version: RHEL 7.3.0 PC (i440FX + PIIX, 1996)
26 Serial Number: B913C223-EEDE-4DFC-BB43-BE1495F4388D
27 UUID: b913c223-eede-4dfc-bb43-be1495f4388d
28 Wake-up Type: Power Switch
29 SKU Number: Not Specified
30 Family: Red Hat Enterprise Linux
31
32 Handle 0x0300, DMI type 3, 21 bytes
33 Chassis Information
34 Manufacturer: Red Hat
35 Type: Other
36 Lock: Not Present
37 Version: RHEL 7.3.0 PC (i440FX + PIIX, 1996)
38 Serial Number: Not Specified
39 Asset Tag: Not Specified
40 Boot-up State: Safe
41 Power Supply State: Safe
42 Thermal State: Safe
43 Security Status: Unknown
44 OEM Information: 0x00000000
45 Height: Unspecified
46 Number Of Power Cords: Unspecified
47 Contained Elements: 0
48
49 Handle 0x0400, DMI type 4, 42 bytes
50 Processor Information
51 Socket Designation: CPU 0
52 Type: Central Processor
53 Family: Other
54 Manufacturer: Red Hat
55 ID: 61 0F 00 00 FF FB 8B 0F
56 Version: RHEL 7.3.0 PC (i440FX + PIIX, 1996)
57 Voltage: Unknown
58 External Clock: Unknown
59 Max Speed: 2000 MHz
60 Current Speed: 2000 MHz
61 Status: Populated, Enabled
62 Upgrade: Other
63 L1 Cache Handle: Not Provided
64 L2 Cache Handle: Not Provided
65 L3 Cache Handle: Not Provided
66 Serial Number: Not Specified
67 Asset Tag: Not Specified
68 Part Number: Not Specified
69 Core Count: 1
70 Core Enabled: 1
71 Thread Count: 1
72 Characteristics: None
73
74 Handle 0x1000, DMI type 16, 23 bytes
75 Physical Memory Array
76 Location: Other
77 Use: System Memory
78 Error Correction Type: Multi-bit ECC
79 Maximum Capacity: 2 GB
80 Error Information Handle: Not Provided
81 Number Of Devices: 1
82
83 Handle 0x1100, DMI type 17, 40 bytes
84 Memory Device
85 Array Handle: 0x1000
86 Error Information Handle: Not Provided
87 Total Width: Unknown
88 Data Width: Unknown
89 Size: 2048 MB
90 Form Factor: DIMM
91 Set: None
92 Locator: DIMM 0
93 Bank Locator: Not Specified
94 Type: RAM
95 Type Detail: Other
96 Speed: Unknown
97 Manufacturer: Red Hat
98 Serial Number: Not Specified
99 Asset Tag: Not Specified
100 Part Number: Not Specified
101 Rank: Unknown
102 Configured Memory Speed: Unknown
103 Minimum Voltage: Unknown
104 Maximum Voltage: Unknown
105 Configured Voltage: Unknown
106
107 Handle 0x1300, DMI type 19, 31 bytes
108 Memory Array Mapped Address
109 Starting Address: 0x00000000000
110 Ending Address: 0x0007FFFFFFF
111 Range Size: 2 GB
112 Physical Array Handle: 0x1000
113 Partition Width: 1
114
115 Handle 0x2000, DMI type 32, 11 bytes
116 System Boot Information
117 Status: No errors detected
118
119 Handle 0x7F00, DMI type 127, 4 bytes
120 End Of Table
121
122 EOF
0 #!/bin/sh -
1 echo x86_64
0 # Test for Nutanix AHV
1 # Copyright (C) 2019 Red Hat Inc.
2 #
3 # This program is free software; you can redistribute it and/or modify
4 # it under the terms of the GNU General Public License as published by
5 # the Free Software Foundation; either version 2 of the License, or
6 # (at your option) any later version.
7 #
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
12 #
13 # You should have received a copy of the GNU General Public License
14 # along with this program; if not, write to the Free Software
15 # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
16
17 output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)"
18 expected="nutanix_ahv"
19
20 if [ "$output" != "$expected" ]; then
21 echo "$0: test failed because output did not match expected"
22 echo "Expected output was:"
23 echo "----------------------------------------"
24 echo "$expected"
25 echo "----------------------------------------"
26 echo "But the actual output of the program was:"
27 echo "----------------------------------------"
28 echo "$output"
29 echo "----------------------------------------"
30 exit 1
31 fi
00 #!/bin/sh -
11 # @configure_input@
2 # Copyright (C) 2008-2017 Red Hat Inc.
2 # Copyright (C) 2008-2019 Red Hat Inc.
33 #
44 # This program is free software; you can redistribute it and/or modify
55 # it under the terms of the GNU General Public License as published by
216216 # Check for Parallels.
217217 if echo "$dmi" | grep -q 'Vendor: Parallels'; then
218218 echo parallels
219 skip_qemu_kvm=true
220 fi
221
222 # Check for Nutanix AHV.
223 # This is sufficiently different from KVM and has Viridian extensions,
224 # so skip the KVM test.
225 if echo "$dmi" | grep -q 'Manufacturer: Nutanix'; then
226 echo nutanix_ahv
219227 skip_qemu_kvm=true
220228 fi
221229
175175 is lkvm (a.k.a kvmtool).
176176
177177 Status: contributed by Andrew Jones
178
179 =item B<nutanix_ahv>
180
181 The guest is running inside Nutanix Acropolis Hypervisor (AHV).
182
183 Status: confirmed by RWMJ.
178184
179185 =item B<openvz>
180186