Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package virt-what for openSUSE:Factory checked in at 2021-05-13 22:18:37 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/virt-what (Old) and /work/SRC/openSUSE:Factory/.virt-what.new.2988 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "virt-what" Thu May 13 22:18:37 2021 rev:7 rq:892602 version:1.21 Changes: -------- --- /work/SRC/openSUSE:Factory/virt-what/virt-what.changes 2020-01-30 16:19:48.746074782 +0100 +++ /work/SRC/openSUSE:Factory/.virt-what.new.2988/virt-what.changes 2021-05-13 22:18:43.599549386 +0200 @@ -1,0 +2,7 @@ +Wed May 12 22:07:50 UTC 2021 - Dirk M??ller <dmuel...@suse.com> + +- update to 1.21: + * Nutanix Acropolis Hypervisor detection + * podman detection + +------------------------------------------------------------------- Old: ---- virt-what-1.20.tar.gz virt-what-1.20.tar.gz.sig New: ---- virt-what-1.21.tar.gz virt-what-1.21.tar.gz.sig ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ virt-what.spec ++++++ --- /var/tmp/diff_new_pack.GmNKE4/_old 2021-05-13 22:18:44.495546270 +0200 +++ /var/tmp/diff_new_pack.GmNKE4/_new 2021-05-13 22:18:44.499546256 +0200 @@ -17,7 +17,7 @@ Name: virt-what -Version: 1.20 +Version: 1.21 Release: 0 Summary: Detect if running in a virtual machine License: GPL-2.0-or-later ++++++ virt-what-1.20.tar.gz -> virt-what-1.21.tar.gz ++++++ ++++ 3149 lines of diff (skipped) ++++ retrying with extended exclude list diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/virt-what-1.20/configure.ac new/virt-what-1.21/configure.ac --- old/virt-what-1.20/configure.ac 2019-10-03 11:18:24.000000000 +0200 +++ new/virt-what-1.21/configure.ac 2021-04-19 13:56:40.000000000 +0200 @@ -15,7 +15,7 @@ # along with this program; if not, write to the Free Software # Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. -AC_INIT([virt-what],[1.20]) +AC_INIT([virt-what],[1.21]) AM_INIT_AUTOMAKE([foreign]) dnl Check for basic C environment. @@ -51,7 +51,9 @@ lkvm-arm \ lx86 \ lxc \ + nutanix-ahv \ parallels-desktop \ + podman \ ppc64-baremetal \ ppc64-kvm \ ppc64-lpar-dedicated \ @@ -93,7 +95,9 @@ tests/lkvm-arm/Makefile tests/lx86/Makefile tests/lxc/Makefile + tests/nutanix-ahv/Makefile tests/parallels-desktop/Makefile + tests/podman/Makefile tests/ppc64-baremetal/Makefile tests/ppc64-kvm/Makefile tests/ppc64-lpar-dedicated/Makefile diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/virt-what-1.20/tests/docker/Makefile.am new/virt-what-1.21/tests/docker/Makefile.am --- old/virt-what-1.20/tests/docker/Makefile.am 2019-10-03 11:02:25.000000000 +0200 +++ new/virt-what-1.21/tests/docker/Makefile.am 2020-01-16 09:38:02.000000000 +0100 @@ -21,8 +21,10 @@ EXTRA_DIST = \ test.sh \ + .dockerenv \ .dockerinit \ proc/cpuinfo \ + proc/self/cgroup \ proc/self/status \ sbin/dmidecode \ sbin/uname \ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/virt-what-1.20/tests/docker/proc/self/cgroup new/virt-what-1.21/tests/docker/proc/self/cgroup --- old/virt-what-1.20/tests/docker/proc/self/cgroup 1970-01-01 01:00:00.000000000 +0100 +++ new/virt-what-1.21/tests/docker/proc/self/cgroup 2020-01-16 09:38:02.000000000 +0100 @@ -0,0 +1,13 @@ +12:devices:/docker/2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae +11:blkio:/docker/2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae +10:perf_event:/docker/2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae +9:pids:/docker/2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae +8:cpuset:/docker/2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae +7:rdma:/ +6:hugetlb:/docker/2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae +5:net_cls,net_prio:/docker/2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae +4:memory:/docker/2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae +3:freezer:/docker/2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae +2:cpu,cpuacct:/docker/2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae +1:name=systemd:/docker/2c26b46b68ffc68ff99b453c1d30413413422d706483bfa0f98a5e886266e7ae +0::/system.slice/containerd.service diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/virt-what-1.20/tests/nutanix-ahv/Makefile.am new/virt-what-1.21/tests/nutanix-ahv/Makefile.am --- old/virt-what-1.20/tests/nutanix-ahv/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ new/virt-what-1.21/tests/nutanix-ahv/Makefile.am 2019-10-04 15:32:04.000000000 +0200 @@ -0,0 +1,28 @@ +# Makefile for virt-what +# Copyright (C) 2008-2011 Red Hat Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +CLEANFILES = *~ + +TESTS = test.sh + +EXTRA_DIST = \ + test.sh \ + proc/cpuinfo \ + proc/self/status \ + sbin/dmidecode \ + sbin/uname \ + sbin/virt-what-cpuid-helper diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/virt-what-1.20/tests/nutanix-ahv/proc/cpuinfo new/virt-what-1.21/tests/nutanix-ahv/proc/cpuinfo --- old/virt-what-1.20/tests/nutanix-ahv/proc/cpuinfo 1970-01-01 01:00:00.000000000 +0100 +++ new/virt-what-1.21/tests/nutanix-ahv/proc/cpuinfo 2019-10-04 15:32:04.000000000 +0200 @@ -0,0 +1,27 @@ +processor : 0 +vendor_id : GenuineIntel +cpu family : 15 +model : 6 +model name : Intel(R) Xeon(R) Silver 4114 CPU @ 2.20GHz +stepping : 1 +microcode : 0x1 +cpu MHz : 2199.998 +cache size : 16384 KB +physical id : 0 +siblings : 1 +core id : 0 +cpu cores : 1 +apicid : 0 +initial apicid : 0 +fpu : yes +fpu_exception : yes +cpuid level : 13 +wp : yes +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 +bugs : cpu_meltdown spectre_v1 spectre_v2 spec_store_bypass l1tf mds swapgs +bogomips : 4399.99 +clflush size : 64 +cache_alignment : 128 +address sizes : 46 bits physical, 48 bits virtual +power management: + diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/virt-what-1.20/tests/nutanix-ahv/proc/self/status new/virt-what-1.21/tests/nutanix-ahv/proc/self/status --- old/virt-what-1.20/tests/nutanix-ahv/proc/self/status 1970-01-01 01:00:00.000000000 +0100 +++ new/virt-what-1.21/tests/nutanix-ahv/proc/self/status 2019-10-04 15:32:04.000000000 +0200 @@ -0,0 +1,55 @@ +Name: cat +Umask: 0022 +State: R (running) +Tgid: 18508 +Ngid: 0 +Pid: 18508 +PPid: 18506 +TracerPid: 0 +Uid: 0 0 0 0 +Gid: 0 0 0 0 +FDSize: 64 +Groups: 0 +NStgid: 18508 +NSpid: 18508 +NSpgid: 18506 +NSsid: 1945 +VmPeak: 5392 kB +VmSize: 5392 kB +VmLck: 0 kB +VmPin: 0 kB +VmHWM: 760 kB +VmRSS: 760 kB +RssAnon: 68 kB +RssFile: 692 kB +RssShmem: 0 kB +VmData: 312 kB +VmStk: 132 kB +VmExe: 28 kB +VmLib: 1456 kB +VmPTE: 48 kB +VmSwap: 0 kB +HugetlbPages: 0 kB +CoreDumping: 0 +THP_enabled: 1 +Threads: 1 +SigQ: 3/7359 +SigPnd: 0000000000000000 +ShdPnd: 0000000000000000 +SigBlk: 0000000000000000 +SigIgn: 0000000000000000 +SigCgt: 0000000000000000 +CapInh: 0000000000000000 +CapPrm: 0000003fffffffff +CapEff: 0000003fffffffff +CapBnd: 0000003fffffffff +CapAmb: 0000000000000000 +NoNewPrivs: 0 +Seccomp: 0 +Speculation_Store_Bypass: thread vulnerable +Cpus_allowed: ffff,ffffffff,ffffffff,ffffffff,ffffffff,ffffffff,ffffffff,ffffffff +Cpus_allowed_list: 0-239 +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 +Mems_allowed_list: 0 +voluntary_ctxt_switches: 0 +nonvoluntary_ctxt_switches: 2 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/virt-what-1.20/tests/nutanix-ahv/sbin/dmidecode new/virt-what-1.21/tests/nutanix-ahv/sbin/dmidecode --- old/virt-what-1.20/tests/nutanix-ahv/sbin/dmidecode 1970-01-01 01:00:00.000000000 +0100 +++ new/virt-what-1.21/tests/nutanix-ahv/sbin/dmidecode 2019-10-04 15:32:04.000000000 +0200 @@ -0,0 +1,123 @@ +#!/bin/sh - +cat <<'EOF' +i# dmidecode 3.2 +Getting SMBIOS data from sysfs. +SMBIOS 2.8 present. +9 structures occupying 486 bytes. +Table at 0x000F73C0. + +Handle 0x0000, DMI type 0, 24 bytes +BIOS Information + Vendor: SeaBIOS + Version: 1.9.1-5.el6 + Release Date: 04/01/2014 + Address: 0xE8000 + Runtime Size: 96 kB + ROM Size: 64 kB + Characteristics: + BIOS characteristics not supported + Targeted content distribution is supported + BIOS Revision: 0.0 + +Handle 0x0100, DMI type 1, 27 bytes +System Information + Manufacturer: Nutanix + Product Name: AHV + Version: RHEL 7.3.0 PC (i440FX + PIIX, 1996) + Serial Number: B913C223-EEDE-4DFC-BB43-BE1495F4388D + UUID: b913c223-eede-4dfc-bb43-be1495f4388d + Wake-up Type: Power Switch + SKU Number: Not Specified + Family: Red Hat Enterprise Linux + +Handle 0x0300, DMI type 3, 21 bytes +Chassis Information + Manufacturer: Red Hat + Type: Other + Lock: Not Present + Version: RHEL 7.3.0 PC (i440FX + PIIX, 1996) + Serial Number: Not Specified + Asset Tag: Not Specified + Boot-up State: Safe + Power Supply State: Safe + Thermal State: Safe + Security Status: Unknown + OEM Information: 0x00000000 + Height: Unspecified + Number Of Power Cords: Unspecified + Contained Elements: 0 + +Handle 0x0400, DMI type 4, 42 bytes +Processor Information + Socket Designation: CPU 0 + Type: Central Processor + Family: Other + Manufacturer: Red Hat + ID: 61 0F 00 00 FF FB 8B 0F + Version: RHEL 7.3.0 PC (i440FX + PIIX, 1996) + Voltage: Unknown + External Clock: Unknown + Max Speed: 2000 MHz + Current Speed: 2000 MHz + Status: Populated, Enabled + Upgrade: Other + L1 Cache Handle: Not Provided + L2 Cache Handle: Not Provided + L3 Cache Handle: Not Provided + Serial Number: Not Specified + Asset Tag: Not Specified + Part Number: Not Specified + Core Count: 1 + Core Enabled: 1 + Thread Count: 1 + Characteristics: None + +Handle 0x1000, DMI type 16, 23 bytes +Physical Memory Array + Location: Other + Use: System Memory + Error Correction Type: Multi-bit ECC + Maximum Capacity: 2 GB + Error Information Handle: Not Provided + Number Of Devices: 1 + +Handle 0x1100, DMI type 17, 40 bytes +Memory Device + Array Handle: 0x1000 + Error Information Handle: Not Provided + Total Width: Unknown + Data Width: Unknown + Size: 2048 MB + Form Factor: DIMM + Set: None + Locator: DIMM 0 + Bank Locator: Not Specified + Type: RAM + Type Detail: Other + Speed: Unknown + Manufacturer: Red Hat + Serial Number: Not Specified + Asset Tag: Not Specified + Part Number: Not Specified + Rank: Unknown + Configured Memory Speed: Unknown + Minimum Voltage: Unknown + Maximum Voltage: Unknown + Configured Voltage: Unknown + +Handle 0x1300, DMI type 19, 31 bytes +Memory Array Mapped Address + Starting Address: 0x00000000000 + Ending Address: 0x0007FFFFFFF + Range Size: 2 GB + Physical Array Handle: 0x1000 + Partition Width: 1 + +Handle 0x2000, DMI type 32, 11 bytes +System Boot Information + Status: No errors detected + +Handle 0x7F00, DMI type 127, 4 bytes +End Of Table + +EOF diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/virt-what-1.20/tests/nutanix-ahv/sbin/uname new/virt-what-1.21/tests/nutanix-ahv/sbin/uname --- old/virt-what-1.20/tests/nutanix-ahv/sbin/uname 1970-01-01 01:00:00.000000000 +0100 +++ new/virt-what-1.21/tests/nutanix-ahv/sbin/uname 2019-10-04 15:32:04.000000000 +0200 @@ -0,0 +1,2 @@ +#!/bin/sh - +echo x86_64 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/virt-what-1.20/tests/nutanix-ahv/sbin/virt-what-cpuid-helper new/virt-what-1.21/tests/nutanix-ahv/sbin/virt-what-cpuid-helper --- old/virt-what-1.20/tests/nutanix-ahv/sbin/virt-what-cpuid-helper 1970-01-01 01:00:00.000000000 +0100 +++ new/virt-what-1.21/tests/nutanix-ahv/sbin/virt-what-cpuid-helper 2019-10-04 15:32:04.000000000 +0200 @@ -0,0 +1,2 @@ +#!/bin/sh - +echo KVMKVMKVM diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/virt-what-1.20/tests/nutanix-ahv/test.sh new/virt-what-1.21/tests/nutanix-ahv/test.sh --- old/virt-what-1.20/tests/nutanix-ahv/test.sh 1970-01-01 01:00:00.000000000 +0100 +++ new/virt-what-1.21/tests/nutanix-ahv/test.sh 2019-10-04 15:32:04.000000000 +0200 @@ -0,0 +1,32 @@ +# Test for Nutanix AHV +# Copyright (C) 2019 Red Hat Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)" +expected="nutanix_ahv" + +if [ "$output" != "$expected" ]; then + echo "$0: test failed because output did not match expected" + echo "Expected output was:" + echo "----------------------------------------" + echo "$expected" + echo "----------------------------------------" + echo "But the actual output of the program was:" + echo "----------------------------------------" + echo "$output" + echo "----------------------------------------" + exit 1 +fi diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/virt-what-1.20/tests/podman/Makefile.am new/virt-what-1.21/tests/podman/Makefile.am --- old/virt-what-1.20/tests/podman/Makefile.am 1970-01-01 01:00:00.000000000 +0100 +++ new/virt-what-1.21/tests/podman/Makefile.am 2020-07-07 17:02:50.000000000 +0200 @@ -0,0 +1,29 @@ +# Makefile for virt-what +# Copyright (C) 2008-2011 Red Hat Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +CLEANFILES = *~ + +TESTS = test.sh + +EXTRA_DIST = \ + test.sh \ + proc/cpuinfo \ + proc/self/cgroup \ + proc/self/status \ + sbin/dmidecode \ + sbin/uname \ + sbin/virt-what-cpuid-helper diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/virt-what-1.20/tests/podman/proc/self/cgroup new/virt-what-1.21/tests/podman/proc/self/cgroup --- old/virt-what-1.20/tests/podman/proc/self/cgroup 1970-01-01 01:00:00.000000000 +0100 +++ new/virt-what-1.21/tests/podman/proc/self/cgroup 2020-07-07 17:02:50.000000000 +0200 @@ -0,0 +1,10 @@ +11:perf_event:/machine.slice/libpod-2ed85a65b4d6aedbf4e6bd1bb2d29e6d7778791bd02532788eb16954cebf01da.scope +10:devices:/machine.slice/libpod-2ed85a65b4d6aedbf4e6bd1bb2d29e6d7778791bd02532788eb16954cebf01da.scope +8:pids:/machine.slice/libpod-2ed85a65b4d6aedbf4e6bd1bb2d29e6d7778791bd02532788eb16954cebf01da.scope +7:blkio:/machine.slice/libpod-2ed85a65b4d6aedbf4e6bd1bb2d29e6d7778791bd02532788eb16954cebf01da.scope +6:cpu,cpuacct:/machine.slice/libpod-2ed85a65b4d6aedbf4e6bd1bb2d29e6d7778791bd02532788eb16954cebf01da.scope +5:net_cls,net_prio:/machine.slice/libpod-2ed85a65b4d6aedbf4e6bd1bb2d29e6d7778791bd02532788eb16954cebf01da.scope +4:freezer:/machine.slice/libpod-2ed85a65b4d6aedbf4e6bd1bb2d29e6d7778791bd02532788eb16954cebf01da.scope +3:cpuset:/machine.slice/libpod-2ed85a65b4d6aedbf4e6bd1bb2d29e6d7778791bd02532788eb16954cebf01da.scope +2:memory:/machine.slice/libpod-2ed85a65b4d6aedbf4e6bd1bb2d29e6d7778791bd02532788eb16954cebf01da.scope +1:name=systemd:/machine.slice/libpod-2ed85a65b4d6aedbf4e6bd1bb2d29e6d7778791bd02532788eb16954cebf01da.scope diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/virt-what-1.20/tests/podman/sbin/dmidecode new/virt-what-1.21/tests/podman/sbin/dmidecode --- old/virt-what-1.20/tests/podman/sbin/dmidecode 1970-01-01 01:00:00.000000000 +0100 +++ new/virt-what-1.21/tests/podman/sbin/dmidecode 2020-07-07 17:02:50.000000000 +0200 @@ -0,0 +1,6 @@ +#!/bin/sh - +cat <<'EOF' +# dmidecode 2.11 +/dev/mem: Operation not permitted +EOF +exit 1 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/virt-what-1.20/tests/podman/sbin/uname new/virt-what-1.21/tests/podman/sbin/uname --- old/virt-what-1.20/tests/podman/sbin/uname 1970-01-01 01:00:00.000000000 +0100 +++ new/virt-what-1.21/tests/podman/sbin/uname 2020-07-07 17:02:50.000000000 +0200 @@ -0,0 +1,2 @@ +#!/bin/sh - +echo x86_64 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/virt-what-1.20/tests/podman/sbin/virt-what-cpuid-helper new/virt-what-1.21/tests/podman/sbin/virt-what-cpuid-helper --- old/virt-what-1.20/tests/podman/sbin/virt-what-cpuid-helper 1970-01-01 01:00:00.000000000 +0100 +++ new/virt-what-1.21/tests/podman/sbin/virt-what-cpuid-helper 2020-07-07 17:02:50.000000000 +0200 @@ -0,0 +1,2 @@ +#!/bin/sh - +echo @ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/virt-what-1.20/tests/podman/test.sh new/virt-what-1.21/tests/podman/test.sh --- old/virt-what-1.20/tests/podman/test.sh 1970-01-01 01:00:00.000000000 +0100 +++ new/virt-what-1.21/tests/podman/test.sh 2020-07-07 17:02:50.000000000 +0200 @@ -0,0 +1,32 @@ +# Test for Podman +# Copyright (C) 2008-2011 Red Hat Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. + +output="$(PATH=../..:$PATH virt-what --test-root=. 2>&1)" +expected="podman" + +if [ "$output" != "$expected" ]; then + echo "$0: test failed because output did not match expected" + echo "Expected output was:" + echo "----------------------------------------" + echo "$expected" + echo "----------------------------------------" + echo "But the actual output of the program was:" + echo "----------------------------------------" + echo "$output" + echo "----------------------------------------" + exit 1 +fi diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/virt-what-1.20/virt-what-cpuid-helper.c new/virt-what-1.21/virt-what-cpuid-helper.c --- old/virt-what-1.20/virt-what-cpuid-helper.c 2013-04-02 17:25:39.000000000 +0200 +++ new/virt-what-1.21/virt-what-cpuid-helper.c 2021-04-19 13:56:31.000000000 +0200 @@ -1,5 +1,5 @@ /* virt-what-cpuid-helper: Are we running inside KVM or Xen HVM? - * Copyright (C) 2008 Red Hat Inc. + * Copyright (C) 2008-2019 Red Hat Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -21,21 +21,51 @@ */ #include <stdio.h> +#include <stdlib.h> +#include <stdint.h> #include <string.h> #if defined(__i386__) || defined(__x86_64__) -static unsigned int -cpuid (unsigned int eax, char *sig) +/* Known x86 hypervisor signatures. Note that if you add a new test + * to virt-what.in you may need to update this list. Note the + * signature is always 12 bytes long, plus we add \0 to the end to + * make it 13 bytes. + */ +static int +known_signature (const char *sig) { - unsigned int *sig32 = (unsigned int *) sig; + return + strcmp (sig, "bhyve bhyve ") == 0 || + memcmp (sig, "KVMKVMKVM\0\0\0", 12) == 0 || + strcmp (sig, "LKVMLKVMLKVM") == 0 || + strcmp (sig, "Microsoft Hv") == 0 || + strcmp (sig, "OpenBSDVMM58") == 0 || + strcmp (sig, "TCGTCGTCGTCG") == 0 || + strcmp (sig, "VMwareVMware") == 0 || + strcmp (sig, "XenVMMXenVMM") == 0 || + 0; +} - asm volatile ( - "xchgl %%ebx,%1; xor %%ebx,%%ebx; cpuid; xchgl %%ebx,%1" - : "=a" (eax), "+r" (sig32[0]), "=c" (sig32[1]), "=d" (sig32[2]) - : "0" (eax)); - sig[12] = 0; +/* Copied from the Linux kernel definition in + * arch/x86/include/asm/processor.h + */ +static inline void +cpuid (uint32_t *eax, uint32_t *ebx, uint32_t *ecx, uint32_t *edx) +{ + asm volatile ("cpuid" + : "=a" (*eax), "=b" (*ebx), "=c" (*ecx), "=d" (*edx) + : "0" (*eax), "2" (*ecx) + : "memory"); +} + +static uint32_t +cpuid_leaf (uint32_t eax, char *sig) +{ + uint32_t *sig32 = (uint32_t *) sig; + cpuid (&eax, &sig32[0], &sig32[1], &sig32[2]); + sig[12] = 0; /* \0-terminate the string to make string comparison possible */ return eax; } @@ -43,24 +73,32 @@ cpu_sig (void) { char sig[13]; - unsigned int base = 0x40000000, leaf = base; - unsigned int max_entries; + const uint32_t base = 0x40000000; + uint32_t leaf; - memset (sig, 0, sizeof sig); - max_entries = cpuid (leaf, sig); - puts (sig); - - /* Most hypervisors only have information in leaf 0x40000000, but - * upstream Xen contains further leaf entries (in particular when - * used with Viridian [HyperV] extensions). CPUID is supposed to - * return the maximum leaf offset in %eax, so that's what we use, - * but only if it looks sensible. + /* Most hypervisors only have information in leaf 0x40000000. + * + * Some hypervisors have "Viridian [HyperV] extensions", and those + * must appear in slot 0x40000000, but they will also have the true + * hypervisor in a higher slot. + * + * CPUID is supposed to return the maximum leaf offset in %eax, but + * this is not reliable. Instead we check the returned signatures + * against a known list (the others will be empty or garbage) and + * only print the ones we know about. This is OK because if we add + * a new test in virt-what we can update the list. + * + * By searching backwards we only print the highest entry, thus + * ignoring Viridian for Xen (and Nutanix). If we ever encounter a + * hypervisor that has more than 2 entries we may need to revisit + * this. */ - if (max_entries > 3 && max_entries < 0x10000) { - for (leaf = base + 0x100; leaf <= base + max_entries; leaf += 0x100) { - memset (sig, 0, sizeof sig); - cpuid (leaf, sig); + for (leaf = base + 0xff00; leaf >= base; leaf -= 0x100) { + memset (sig, 0, sizeof sig); + cpuid_leaf (leaf, sig); + if (known_signature (sig)) { puts (sig); + break; } } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/virt-what-1.20/virt-what.in new/virt-what-1.21/virt-what.in --- old/virt-what-1.20/virt-what.in 2018-10-31 16:09:15.000000000 +0100 +++ new/virt-what-1.21/virt-what.in 2020-07-07 17:02:50.000000000 +0200 @@ -1,6 +1,6 @@ #!/bin/sh - # @configure_input@ -# Copyright (C) 2008-2017 Red Hat Inc. +# Copyright (C) 2008-2019 Red Hat Inc. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -132,7 +132,8 @@ # The negative check for cpuid is to distinguish this from Hyper-V # which also has the same manufacturer string in the SM-BIOS data. if [ "$cpuid" != "Microsoft Hv" ] && - echo "$dmi" | grep -q 'Manufacturer: Microsoft Corporation'; then + echo "$dmi" | grep -q 'Manufacturer: Microsoft Corporation' && + echo "$dmi" | grep -q 'Product Name: Virtual Machine'; then echo virtualpc fi @@ -164,7 +165,7 @@ # Added by Marc Fournier if [ -e "${root}/proc/1/environ" ] && - cat "${root}/proc/1/environ" | tr '\000' '\n' | grep -Eiq '^container='; then + cat "${root}/proc/1/environ" | tr '\000' '\n' | grep -Eiq '^container=lxc'; then echo lxc fi @@ -220,6 +221,14 @@ skip_qemu_kvm=true fi +# Check for Nutanix AHV. +# This is sufficiently different from KVM and has Viridian extensions, +# so skip the KVM test. +if echo "$dmi" | grep -q 'Manufacturer: Nutanix'; then + echo nutanix_ahv + skip_qemu_kvm=true +fi + # Check for oVirt/RHEV. if echo "$dmi" | grep -q 'Manufacturer: oVirt'; then echo ovirt @@ -336,10 +345,19 @@ fi # Check for Docker. -if [ -f "${root}/.dockerinit" ]; then +if [ -f "${root}/.dockerenv" ] || [ -f "${root}/.dockerinit" ] || \ + grep -qF /docker/ "${root}/proc/self/cgroup" 2>/dev/null; then echo docker fi +# Check for Podman. +if [ -e "${root}/proc/1/environ" ] && + cat "${root}/proc/1/environ" | tr '\000' '\n' | grep -Eiq '^container=podman'; then + echo podman +elif grep -qF /libpod- "${root}/proc/self/cgroup" 2>/dev/null; then + echo podman +fi + # Check ppc64 lpar, kvm or powerkvm # example /proc/cpuinfo line indicating 'not baremetal' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' --exclude Makefile.in --exclude configure --exclude config.guess --exclude '*.pot' --exclude mkinstalldirs --exclude aclocal.m4 --exclude config.sub --exclude depcomp --exclude install-sh --exclude ltmain.sh old/virt-what-1.20/virt-what.pod new/virt-what-1.21/virt-what.pod --- old/virt-what-1.20/virt-what.pod 2018-10-31 16:09:15.000000000 +0100 +++ new/virt-what-1.21/virt-what.pod 2020-07-07 17:02:50.000000000 +0200 @@ -177,6 +177,12 @@ Status: contributed by Andrew Jones +=item B<nutanix_ahv> + +The guest is running inside Nutanix Acropolis Hypervisor (AHV). + +Status: confirmed by RWMJ. + =item B<openvz> The guest appears to be running inside an OpenVZ or Virtuozzo @@ -198,6 +204,12 @@ Status: contributed by Justin Clift +=item B<podman> + +This is a Podman container. + +Status: contributed by Jordan Webb + =item B<powervm_lx86> The guest is running inside IBM PowerVM Lx86 Linux/x86 emulator.