[Pkg-libvirt-commits] [Git][libvirt-team/virt-what][upstream/latest] 158 commits: Copy initial release from CVS.

Jeremy Bicha (@jbicha) gitlab at salsa.debian.org
Fri Apr 15 19:42:18 BST 2022



Jeremy Bicha pushed to branch upstream/latest at Libvirt Packaging Team / virt-what


Commits:
7880dab8 by Richard Jones at 2009-07-09T10:25:39+01:00
Copy initial release from CVS.

- - - - -
b8957a6b by Richard Jones at 2009-07-23T09:59:36+01:00
Autoconfify, add CPUID helper program to detect HVM domains (Paolo Bonzini).

- - - - -
fcc68d36 by Richard Jones at 2009-07-23T11:28:32+01:00
Comment on what VMware guests print ("VMwareVMware")

- - - - -
fd81b8d1 by Laurent Léonard at 2009-08-10T09:13:36+01:00
Add UML support.

- - - - -
9cc6eaf5 by Laurent Léonard at 2009-08-10T09:13:39+01:00
Add VirtualBox support.

- - - - -
b103ff5b by Richard Jones at 2009-08-10T09:17:26+01:00
Update documentation on new tests added by Laurent Léonard.

- - - - -
b60d5c17 by Richard Jones at 2009-08-10T09:18:26+01:00
'make clean' now removes generated files.

- - - - -
8e46d4ba by Richard Jones at 2009-08-10T09:26:22+01:00
Move virt-what-cpuid-helper to /usr/libexec.

- - - - -
f21cd901 by Richard Jones at 2009-12-17T17:17:49+00:00
vmware status confirmed by RWMJ on ESX 4.0

- - - - -
d61ea83d by Richard Jones at 2009-12-17T17:18:41+00:00
Prepare for 1.2.

- - - - -
25ec4645 by Richard Jones at 2009-12-30T12:15:25+00:00
Install virt-what in $sbindir since the script should only be run by root (suggested by Laurent Léonard)

- - - - -
7ee7259d by Richard Jones at 2010-07-01T20:34:36+01:00
Check for VMWare using the CPUID (thanks: Chetan Loke).

- - - - -
aa734a5b by Richard W.M. Jones at 2010-10-18T20:02:21+01:00
xen: More reliable differentiation of dom0 and domU.

- - - - -
1fd1ba44 by Richard W.M. Jones at 2010-10-19T09:31:56+01:00
Version 1.3.

- - - - -
ee4ad55a by Richard W.M. Jones at 2010-12-15T19:54:15+00:00
Detect Microsoft Hyper-V.

Based on a description on MSDN:
http://blogs.msdn.com/b/sqlosteam/archive/2010/10/30/is-this-real-the-metaphysics-of-hardware-virtualization.aspx

Not tested.  Hyper-V also supports more detail through the CPUID
instruction, which we don't yet display.

- - - - -
1c555799 by Richard W.M. Jones at 2011-01-17T10:37:20+00:00
Add detection of IBM PowerVM Lx86 Linux/x86 emulator.

- - - - -
8bbf6736 by Richard W.M. Jones at 2011-01-18T15:32:01+00:00
Add detection of Hitachi Virtualization Manager (HVM) Virtage LPAR.

Data supplied by Bhavna Sarathy.  Not confirmed.

- - - - -
7b3638b1 by Richard W.M. Jones at 2011-01-18T15:34:07+00:00
Set LANG=C when running external dmidecode command.

- - - - -
9f20b253 by Richard W.M. Jones at 2011-01-18T15:35:16+00:00
Update copyright and link in man page.

- - - - -
60d20f2a by Richard W.M. Jones at 2011-01-18T15:42:48+00:00
Version 1.4.

- - - - -
f74a5f24 by Richard W.M. Jones at 2011-01-18T17:03:36+00:00
Add a test for baremetal.

This modifies the virt-what script slightly so that a test
root can be passed, which causes all tests to be run relative
to that root directory (similar to a chroot).

We then provide a root directory with just enough files in it
to convince virt-what that it is a baremetal machine.

Note that the data in the files is completely real.  We do
not intend to add a test unless we can get data from the
real system.

- - - - -
da0de94a by Richard W.M. Jones at 2011-01-18T17:11:29+00:00
Add test for VMware with data from ESX 4.1 (thanks Matthew Booth).

- - - - -
45623caa by Richard W.M. Jones at 2011-01-18T17:36:46+00:00
Add tests for KVM and QEMU.

The data is taken from a RHEL 6.0 guest running on a Fedora 14 host
(x86_64 in both cases), using qemu-kvm and qemu-system-x86_64
respectively.

qemu-kvm-0.13.0-1.fc14.x86_64
qemu-system-x86-0.13.0-1.fc14.x86_64

- - - - -
e5711e7e by Richard W.M. Jones at 2011-01-18T17:40:26+00:00
Add test files to EXTRA_DIST.

- - - - -
77e1dc20 by Richard W.M. Jones at 2011-01-18T21:26:00+00:00
Version 1.5.

Also update instructions in README to cover running make check
and running virt-what locally as root.

- - - - -
5a0ed24f by Richard W.M. Jones at 2011-01-18T22:29:43+00:00
Update README with information for potential contributors.

- - - - -
9975d7cf by Richard W.M. Jones at 2011-01-19T11:09:52+00:00
docs: Make it clear that 'qemu' is software emulation (thanks Eduardo Habkost).

- - - - -
0e473a63 by Barış Metin at 2011-01-19T15:08:23+00:00
Add support for detecting Linux VServer.

- - - - -
bf340c74 by Richard W.M. Jones at 2011-01-19T16:21:23+00:00
Fix tests: Add /proc/self/status to test roots.

Note that in two cases (esx4.1, qemu) this is an empty
file because we haven't collected this data yet.

- - - - -
f1f41c09 by Richard W.M. Jones at 2011-01-19T16:22:48+00:00
Add regression test for RHEL 5 Xen Dom0.

- - - - -
3cfd8795 by Richard W.M. Jones at 2011-01-19T17:35:03+00:00
Add regression test for RHEL 5 Xen DomU paravirt.

- - - - -
6997576c by Richard W.M. Jones at 2011-01-19T17:56:42+00:00
Add regression test for Linux-VServer (thanks Barış Metin).

- - - - -
a463d724 by Richard W.M. Jones at 2011-01-19T18:28:33+00:00
Add regression test for RHEL 5 Xen DomU HVM (aka full virtualization).

- - - - -
1061ae4a by Richard W.M. Jones at 2011-01-19T18:43:38+00:00
man page: Refresh section on reporting bugs.

- - - - -
826e754c by Richard W.M. Jones at 2011-01-19T18:47:55+00:00
Add missing files to EXTRA_DIST.

- - - - -
d49f54a0 by Richard W.M. Jones at 2011-01-19T18:47:55+00:00
Version 1.6.

- - - - -
37f7b6e5 by Richard W.M. Jones at 2011-01-20T13:51:04+00:00
Add test for z/VM on IBM SystemZ mainframes (thanks Dan Horák).

- - - - -
36529e78 by Richard W.M. Jones at 2011-01-20T14:58:14+00:00
Add additional facts about IBM SystemZ mainframes (thanks Dan Horák)..

Add /proc/sysinfo from a real z/VM guest.

This file can in theory be used to detect the following three
arrangements:

 (1) Linux running in z/VM on an LPAR.
 (2) Linux running directly on an LPAR.
 (3) Linux running directly on baremetal (very unlikely!)

Only arrangement (1) has been tested.

- - - - -
55cf13ae by Richard W.M. Jones at 2011-01-20T15:39:46+00:00
Add support for Linux kernels with pv_ops running on Xen.

These would be found for example on Amazon EC2 or Citrix Xen.

This also adds all the extra files found under /sys/hypervisor
on this platform.

- - - - -
75a67daa by Richard W.M. Jones at 2011-01-20T16:18:49+00:00
Add /sys/hypervisor files from RHEL 5 Xen DomU to EXTRA_DIST.

This updates commit 55cf13ae4a00c30b55fe508f544406dce05bdb8d.

- - - - -
639a31b0 by Richard W.M. Jones at 2011-01-20T16:19:19+00:00
Add tests/zvm/proc/sysinfo to EXTRA_DIST.

This updates commit 36529e78a60a1c4097e7fe8fa4f3971f8581d864.

- - - - -
a70ac5e9 by Richard W.M. Jones at 2011-01-20T16:19:19+00:00
Add /sys/hypervisor test files from RHEL 5 Xen Dom0.

- - - - -
fe3fbe4e by Richard W.M. Jones at 2011-01-20T16:19:19+00:00
README: Document how to build from git.

- - - - -
0c8dd875 by Richard W.M. Jones at 2011-01-20T16:19:19+00:00
Version 1.7.

- - - - -
4216f66a by Richard W.M. Jones at 2011-01-24T10:27:52+00:00
Add Parallels Virtual Platform (thanks Justin Clift).

- - - - -
300c5168 by Richard W.M. Jones at 2011-01-24T11:03:42+00:00
cpuid: Find other leaf entries (RHBZ#671510).

- - - - -
32e195d1 by Richard W.M. Jones at 2011-01-24T11:16:53+00:00
Add a regression test for Parallels Desktop (thanks Justin Clift).

- - - - -
80499c71 by Richard W.M. Jones at 2011-01-24T11:18:58+00:00
Add virt-what to CLEANFILES.

- - - - -
0e90af40 by Richard W.M. Jones at 2011-01-26T23:43:00+00:00
Confirm Microsoft Hyper-V, and add a regression test.

Data collected from a RHEL 5.6 guest running on Hyper-V.

Also this modifies the VirtualPC test slightly to distinguish
it from Hyper-V.  We require more data from a real VirtualPC
guest to properly refine this test.

- - - - -
c9622b60 by Richard W.M. Jones at 2011-01-31T12:35:56+00:00
Various improvements to the manual page (RHBZ#672285).

- - - - -
d43389b7 by Justin Clift at 2011-01-31T19:24:29+00:00
Update Parallels Desktop test files.

- - - - -
97682ffb by Richard W.M. Jones at 2011-01-31T19:24:44+00:00
Version 1.8.

- - - - -
6fe3b5f9 by Richard W.M. Jones at 2011-02-01T14:46:25+00:00
Add note about dmidecode on non-PC architectures (thanks Matt Booth).

- - - - -
5453cf33 by Richard W.M. Jones at 2011-03-02T07:42:44+00:00
docs: Document the exit status of the script.

- - - - -
039a077e by Richard W.M. Jones at 2011-03-08T12:34:29+00:00
Version 1.9.

- - - - -
b12933e2 by Richard W.M. Jones at 2011-03-09T11:37:35+00:00
docs: Document that SIGPIPE should not be masked when running virt-what.

- - - - -
74a75da0 by Richard W.M. Jones at 2011-04-21T09:54:55+01:00
Add a regression test for IBM PowerVM Lx86 emulator (thanks Yufang Zhang)..

Data was collected by RWMJ from IBM eServer BladeCenter JS12 server,
running a PowerVM Lx86 Virtual x86 Environment (VxE) guest.

- - - - -
f9bf4328 by Richard W.M. Jones at 2011-05-25T11:04:59+01:00
Use $(TESTS) in $(EXTRA_DIST) instead of duplicating list.

This is just rearrangement of the file.

- - - - -
441ce9d9 by Richard W.M. Jones at 2011-05-25T11:14:21+01:00
Fix for KVM with explicit -cpu model parameter.

- - - - -
5e85dccc by Richard W.M. Jones at 2011-05-25T11:14:22+01:00
Add regression test for kvm with explicit -cpu core2duo option.

- - - - -
4fbbc815 by Richard W.M. Jones at 2011-05-25T11:26:06+01:00
Version 1.10.

- - - - -
3ea95216 by Richard W.M. Jones at 2011-05-26T15:55:41+01:00
Add IA64-specific tests for virtualization (RHBZ#707508).

Xen IA64 HVM does not provide a simple way to detect the
hypervisor.

If we are lucky and PV-on-HVM drivers are installed and loaded,
then there will be a /sys/bus/xen directory.

Otherwise we add a timing attack to see if we can detect generic
virtualization.  Since this is a big hack, it is only enabled on IA64
and only used when all other methods of detection have failed.

This commit also adds `uname -p` to all tests (enabling arch detection
so we only run the above tests on IA64).

- - - - -
2d9d8b9e by Richard W.M. Jones at 2011-05-26T15:55:45+01:00
Add regression test for RHEL 5.7beta Xen HVM guest on IA64 architecture.

See also:
https://bugzilla.redhat.com/show_bug.cgi?id=707508

Thanks Alexander Todorov for access to the hardware.

- - - - -
6a448e48 by Richard W.M. Jones at 2011-05-27T12:17:50+01:00
Version 1.11.

- - - - -
d87e9cba by Richard W.M. Jones at 2011-05-27T12:28:28+01:00
IA64 Xen HVM should print 'xen-hvm' not 'xen-domU'.

This updates commit 3ea952163f0c28cd88f8473bb015df892c4247bf.

- - - - -
53cf9493 by Richard W.M. Jones at 2012-03-17T10:53:56+00:00
Preserve %ebx across CPUID when using PIE (thanks Faustus, Anthony Basile from Gentoo).

PIE on i686 uses %ebx as a base register.  Don't clobber it across the
CPUID instruction.

https://bugs.gentoo.org/show_bug.cgi?id=341271
https://bugzilla.redhat.com/show_bug.cgi?id=804282

- - - - -
d9da56ca by Richard W.M. Jones at 2012-03-17T13:23:41+00:00
Version 1.12.

- - - - -
a2f08762 by Richard W.M. Jones at 2012-05-25T20:47:22+01:00
doc: Add note about use of this tool for system tuning.

- - - - -
225c970d by Sami Kerola at 2012-07-18T22:01:48+01:00
man: detect with autotools if pod2man is present

When pod2man is not present build will skip the manual.  Earlier the
condition caused make error, and empty manual page.

Signed-off-by: Sami Kerola <kerolasa at iki.fi>

RWMJ:
 - Generate virt-what.txt conditionally too (uses pod2text).

- - - - -
64acedea by Sami Kerola at 2012-07-18T22:03:43+01:00
Remove bash backtick command substitution

The $(command) is more flexible as it allows nesting and easier to
read, than `command` notation.

Signed-off-by: Sami Kerola <kerolasa at iki.fi>

- - - - -
a1670e2c by Sami Kerola at 2012-07-18T22:10:17+01:00
Disallow use of unset variables

Use of unset variable should be considered as bug, which means there
has to be sensible defaults.  For $skip_qemu_kvm the default, or later
setting, is a binary named 'true' or 'false' which is executed at it
clause.

Signed-off-by: Sami Kerola <kerolasa at iki.fi>

- - - - -
8aa72773 by Sami Kerola at 2012-07-19T09:26:01+01:00
Retire private id executables

The main script is setting PATH to use id executable from rather
strange directory.  That allowed checks to run without root
privilege.  This change will make detection whether test run is
been requested more universal, and to work without super setting
id command.

Signed-off-by: Sami Kerola <kerolasa at iki.fi>

RWMJ:
  - Use -ne instead of != to compare integers.

- - - - -
0b8a09d2 by Sami Kerola at 2012-07-19T09:26:40+01:00
Update GNU license FSF address

The file is copied as is from GNU web site.

Reference: http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt
Reference: http://lists.gnu.org/archive/html/freefont-announce/2005-04/msg00001.html
Signed-off-by: Sami Kerola <kerolasa at iki.fi>

- - - - -
08318065 by Masaki Kimura at 2012-09-18T08:58:16+01:00
Change dmidecode detection of Hitachi Virtage.

Hitachi plans to change dmidecode output in the future release of
Virtage.  By this change, some of Virtage models will not output "HVM"
before LPAR in "Product Name" field, which current virt-what code uses
to detect Virtage.  Therefore we need to change Virtage check routine.

- - - - -
2f47e061 by Todd Zullinger at 2013-04-02T16:27:23+01:00
Direct output from fail() to stderr

This allows callers to more easily differentiate valid output from
errors.  A recent example is facter.  When calling virt-what for its
virtual fact, it gets 'virt-what: this script must be run as root' as
the fact value when run as non-root:

$ facter | grep ^virtual
virtual => virt-what: this script must be run as root

This is mildly related to RHBZ #719611¹.

¹ https://bugzilla.redhat.com/show_bug.cgi?id=719611

- - - - -
b4a8cdb6 by Marc Fournier at 2013-04-17T20:16:22+01:00
Add detection for LXC + tests

- - - - -
268ed1dd by Marc Fournier at 2013-04-17T20:16:22+01:00
Remove reference to /sbin/id from Makefile

This was left out from 8aa72773.

- - - - -
1115c163 by Marc Fournier at 2013-04-17T20:16:22+01:00
Be consistent with variable quoting and braces

- - - - -
c404f499 by Richard W.M. Jones at 2013-04-17T20:19:16+01:00
Add lxc to virt-what man page.

- - - - -
54a7c622 by Richard W.M. Jones at 2013-07-29T15:20:52+01:00
Ignore automake parallel-test files.

- - - - -
7b05e561 by Richard W.M. Jones at 2013-07-29T15:21:05+01:00
Version 1.13.

- - - - -
d409914d by Elan Ruusamäe at 2013-09-02T15:31:03+01:00
Differentiate between vserver host and guest.

RWMJ: Update documentation and tests.

- - - - -
acd6bec9 by nodata at 2013-09-02T16:59:32+01:00
Detect new Xen VMs (RHBZ#973663).

- - - - -
8709c0e8 by Richard W.M. Jones at 2013-10-28T11:11:31+00:00
xen: Don't emit warning message if /proc/xen/capabilities file does not exist.

On Amazon EC2:

xen
grep: /proc/xen/capabilities: No such file or directory
xen-domU

The warning is harmless but should not be printed.

Thanks: Can Zhang for testing.

- - - - -
9709c8f0 by Richard W.M. Jones at 2013-12-12T08:47:37+00:00
Fix various typos and mistakes in comments.

(Thanks Robert P. J. Day)

- - - - -
18ad5d17 by Richard W.M. Jones at 2014-01-07T12:37:30+00:00
Version 1.14.

- - - - -
1efaa883 by Richard W.M. Jones at 2014-05-20T10:50:39+01:00
Fix spelling mistake in the man page (RHBZ#1099289).

- - - - -
abd067c4 by Charles Nguyen at 2014-06-23T19:50:37+01:00
Added check and test routines for Docker

- - - - -
902276ac by Charles Nguyen at 2014-06-23T19:50:42+01:00
Added documentation for Docker tests

- - - - -
6382ef1c by A. Gordon at 2014-09-16T18:56:37+01:00
virt-what.in: remove bash-ism

Use '/bin/sh' instead of '/bin/bash', with POSIX-compatible function
definitions.

- - - - -
f82984fb by Assaf Gordon at 2014-09-16T18:56:37+01:00
virt-what.in: get effective uid in a portable way

$EUID is bash-specific. Use the POSIX-compatible 'id -u' instead.

- - - - -
e3e88af8 by Assaf Gordon at 2014-09-16T18:56:37+01:00
virt-what.in: warn about missing cpuid-virt helper program

Try to find the binary program on the $PATH, and give informative error
message if it wasn't found.

- - - - -
a68e9c00 by Assaf Gordon at 2014-09-16T18:57:54+01:00
virt-what.in: verify files exists before grepping them

Don't grep linux-specific files (e.g. /proc/cpuinfo) unless they exist.
This avoids extraneous errors on BSD/Hurd systems which don't have these
files.

- - - - -
aec669f7 by Assaf Gordon at 2014-09-16T18:57:54+01:00
virt-what.in: make option processing portable

Replace linux-specific 'getopt' usage with manual option parsing.
Because the used option are version simple (help/version) and the only
additional option is undocumented (--test-root), it's easy remove the
'getopt' usage, and make this script portable to BSD systems.

- - - - -
243928da by A. Gordon at 2014-09-16T18:57:54+01:00
build: use portable Makefile variables

* Makefile.am: use '$?' instead of '$<'
  $< in a non-inference rule is a GNU-make extension, which fails with
  BSD make.

- - - - -
bdb7404c by Richard W.M. Jones at 2014-09-16T19:02:18+01:00
Add space before parens in function defns for readability.

- - - - -
18d21a55 by Andrew Jones at 2015-03-27T20:39:40+00:00
Add lkvm detection

Signed-off-by: Andrew Jones <drjones at redhat.com>

- - - - -
87d670b4 by Andrew Jones at 2015-03-27T20:39:40+00:00
Add ARM support

Currently only detects LKVM, QEMU/KVM, and Xen. Also only works if
the guest is booted with DT (which is the only way that currently
exists).

Signed-off-by: Andrew Jones <drjones at redhat.com>

- - - - -
5c4bdcf6 by Richard W.M. Jones at 2015-04-21T12:13:25+01:00
xen-arm: Fix path in EXTRA_DIST.

- - - - -
2afd403f by Richard W.M. Jones at 2015-04-21T12:13:26+01:00
Version 1.15

- - - - -
8dd2e213 by Richard W.M. Jones at 2015-08-03T12:23:05+01:00
Update copyright years.

- - - - -
163024ab by Andrew Jones at 2015-09-22T16:37:54+01:00
Add QEMU/KVM detection for ACPI-boot ARM

Detect QEMU/KVM on ARM guests that have been boot with ACPI, i.e.
without device tree. When boot with ACPI SMBIOS is populated, so we
can use dmidecode.

Signed-off-by: Andrew Jones <drjones at redhat.com>

- - - - -
1b0df165 by Andrew Jones at 2015-09-22T18:17:58+01:00
trivial: comment fixup

dmidecode does now exist on non-PC architectures.

- - - - -
1159ea3a by Richard W.M. Jones at 2015-09-22T18:17:58+01:00
Add oVirt (RHBZ#1249438).

- - - - -
4754a01c by Andrew Jones at 2015-11-03T09:55:45+00:00
trivial: virt-what.in doesn't use tabs

- - - - -
6dbd668e by Andrew Jones at 2015-11-03T09:55:45+00:00
qemu/kvm: try dmidecode on all targets

Looking at "$dmi" on targets that don't support dmidecode is
harmless. Furthermore it works, not only for arm targets, but
also pc, so move it out of the 'if arm' block.

- - - - -
6fe2ebae by Andrew Jones at 2015-11-03T09:55:45+00:00
qemu/kvm: dmidecode: look for 'KVM'

We can check the product name for 'KVM' to determine if we're
accelerated. This only works for arm/aarch64 targets boot with
AAVMF and on RHEL x86 targets (which already have KVM in the cpuid
leaf), but it doesn't hurt to try on all.

- - - - -
d5a6ad7f by Adrian Likins at 2016-06-20T13:05:37+01:00
Add support for detecting ppc64 LPAR as virt guests.

https://bugzilla.redhat.com/show_bug.cgi?id=1072524#c13

- - - - -
d35e2b9a by Richard W.M. Jones at 2016-06-20T13:14:53+01:00
Update the previous commit to use <system>-<virt> standard for facts.

Also I renamed ppc64 to power, since that is the official IBM name.

- - - - -
73f63924 by Richard W.M. Jones at 2016-08-22T12:32:41+01:00
Add detection of Red Hat Enterprise Virtualization hypervisor (RHBZ#1249438).

Thanks: Xianghua Chen

- - - - -
01b89651 by Leonardo Brondani Schenkel at 2016-10-10T15:13:39+01:00
Add detection of bhyve (FreeBSD hypervisor)

- - - - -
3a3ed10c by Richard W.M. Jones at 2016-10-10T15:15:41+01:00
Add documentation for bhyve.

- - - - -
15314ad0 by Richard W.M. Jones at 2017-06-29T10:07:38+01:00
Print 'qemu' fact when running in qemu environment on POWER 9 (RHBZ#1455676).

Thanks Nageswara R. Sastry

- - - - -
516a3554 by Richard W.M. Jones at 2017-06-29T11:22:21+01:00
Revert "Print 'qemu' fact when running in qemu environment on POWER 9 (RHBZ#1455676)."

This reverts commit 15314ad0a6e3764f070b60f6df02a2f881b09fce.

- - - - -
50153230 by Thomas Huth at 2017-06-29T11:27:42+01:00
Detect KVM property when running on POWER (RHBZ#1455676).

QEMU on ppc64 adds an additional property in the device tree if
running with KVM, so you could check that property for the string
"linux,kvm" to see if KVM is enabled:

0000000: 6c69 6e75 782c 6b76 6d00                 linux,kvm.

- - - - -
90f6be5a by Mark Huth at 2017-07-05T14:06:57+01:00
Export internal PATH variable (RHBZ#1467878).

- Fixes virt-what failing if it's started without an environment, eg:
  $ env -i /sbin/virt-what
  ... or with python subprocess.Popen, eg:
  p = subprocess.Popen('/sbin/virt-what', shell=False, ... , env={})

- - - - -
89c3d9e0 by Thomas Huth at 2017-07-18T13:44:16+01:00
Add support for KVM on System Z

KVM on System Z can be discovered in the same way as z/VM, by
looking at the "VM* Control Program" lines in /proc/sysinfo.

Signed-off-by: Thomas Huth <thuth at redhat.com>

- - - - -
a476928b by Daniel P. Berrange at 2017-07-18T13:47:15+01:00
Update to detect QEMU via 'TCGTCGTCGTCG' CPUID

QEMU >= 2.10 will start reporting the string "TCGTCGTCGTCG"
for CPUID queries when running under TCG only (KVM signature
is unchanged)

Signed-off-by: Daniel P. Berrange <berrange at redhat.com>

- - - - -
85db367a by Jasper Lievisse Adriaanse at 2017-07-18T14:06:05+01:00
virt-what: recognize OpenBSD vmm

Hi,

Please find attached a patch for virt-what to recognize the OpenBSD VMM
hypervisor.

For more information on vmm, please refer to:
- http://man.openbsd.org/vmm.4
- https://www.openbsd.org/papers/asiabsdcon2017-vmm-slides.pdf

>From 837390b5afbb9253a62b15208d6fb4cbbbecabf1 Mon Sep 17 00:00:00 2001
From: Jasper Lievisse Adriaanse <j at jasper.la>
Date: Sat, 17 Jun 2017 21:17:39 +0200
Subject: [PATCH] vmm detection (OpenBSD hypervisor)

- - - - -
dc322281 by Qi Guo [Flos] at 2017-07-19T16:39:29+01:00
Update virt-what to detect AWS via dmidecode data.

- - - - -
dc0c2972 by Darren Kenny at 2017-07-20T18:36:46+01:00
Add LDoms Support.

The current version of virt-what does not support discovery of any
Logical Domains (LDoms) variants. This patch adds that support.

Orabug: 26106813

Signed-off-by: Darren Kenny <darren.kenny at oracle.com>
Reviewed-By: Liam Merwick <liam.merwick at oracle.com>
Reviewed-By: Rashmi Narasimhan <rashmi.narasimhan at oracle.com>

- - - - -
d83bbc14 by Richard W.M. Jones at 2017-07-31T14:14:06+01:00
Version 1.16

- - - - -
3ca0c757 by Richard W.M. Jones at 2017-07-31T14:19:46+01:00
Fix EXTRA_DIST to match actual contents of tests directory.

- - - - -
d37de7dd by Richard W.M. Jones at 2017-07-31T14:32:51+01:00
Document ‘aws’ meaning Amazon Web Services cloud guest.

Updates commit dc32228184622b28f412f527c0f353347db029b8.

- - - - -
0e25bd82 by Richard W.M. Jones at 2017-07-31T15:04:48+01:00
tests: Fix ldoms test so it doesn't test the host.

Fixes commit dc0c2972e178a6de9ee87501acca54447ea9c699.

- - - - -
39ca395b by Richard W.M. Jones at 2017-07-31T15:19:52+01:00
ppc64: Test ${root}/proc/device-tree/hypervisor instead of real file.

Fixes commit 50153230d19401fe47fcfd19d7ca0a2623c1ff09.

- - - - -
0e4f1e81 by Richard W.M. Jones at 2017-07-31T15:28:45+01:00
Version 1.17.

- - - - -
1453b3e8 by Richard W.M. Jones at 2017-07-31T15:34:08+01:00
Add new ldoms binaries to EXTRA_DIST.

Fixes commit 0e25bd8297ddedec14a260b25a6347ccca784df3
and commit dc0c2972e178a6de9ee87501acca54447ea9c699.

- - - - -
901ebb4a by Richard W.M. Jones at 2017-07-31T15:35:11+01:00
Version 1.18.

- - - - -
eefc1e7e by Jasper Lievisse Adriaanse at 2017-08-10T08:44:01+01:00
Missing have_cpuinfo check.

- - - - -
9d90704a by Guido Günther at 2017-09-28T13:31:39+01:00
Remove bashisms

Use [ instead of [[ so we fall back to test if necessary:

     http://pubs.opengroup.org/onlinepubs/9699919799/utilities/test.html

Gbp-Pq: Name Remove-bashisms.patch

- - - - -
a821dc99 by xiliang at 2017-10-17T12:13:28+01:00
As xen pv guest can access cpuid from Intel CPUs started IvyBridge onwards have CPUID Faulting, added one more check in virt-what.

- - - - -
7db94c8f by Richard W.M. Jones at 2017-10-17T14:47:09+01:00
Recognize ppc64le (little endian) virtualization (RHBZ#1147876).

Tested by Laurent Vivier, see:
https://bugzilla.redhat.com/show_bug.cgi?id=1147876#c35 & ff.

- - - - -
52870e8a by Guido Günther at 2018-01-27T12:19:22+00:00
Determine architecture via 'uname -m'

'uname -p' only gives unknown on x86_64, i386, arm6l (rpi) and aarch64
(scaleways).

- - - - -
d7fd8a78 by Jasper Lievisse Adriaanse at 2018-05-03T12:35:55+01:00
Allow using sysctl, for example when /proc isn't available

- - - - -
5efe9f7a by Richard W.M. Jones at 2018-08-28T18:32:41+01:00
Replace == with = since the former is a bash-ism.

Thanks: Eric Blake.

Fixes commit d7fd8a7843030d2b1719353edfcd49dba3000122.

- - - - -
147c648e by Richard W.M. Jones at 2018-10-31T15:09:15+00:00
aws: Detect AWS from dmidecode information.

Move the AWS detection out from under Xen.  AWS runs on KVM and
baremetal these days.  The dmidecode information for KVM and baremetal
is a little bit different so we also need to adjust the test for that
case.

Typical SMBIOS info for Xen:

BIOS Information
        Vendor: Xen
        Version: 4.2.amazon

Typical SMBIOS info for KVM and baremetal:

BIOS Information
        Vendor: Amazon EC2
        Version: 1.0

Thanks: Vitaly Kuznetsov, Jon Masters.

- - - - -
4bceb38a by Richard W.M. Jones at 2018-10-31T15:37:34+00:00
tests: Fix tests when run on AWS.

When running on AWS two of the tests failed.  This was because the
tests did _not_ include a working dmidecode binary, hence the platform
dmidecode binary was being run instead, and that was detecting as AWS
owing to the previous commit.  Fix this by supplying a working
dmidecode binary for those tests.

- - - - -
129a25f9 by Richard W.M. Jones at 2018-10-31T15:37:34+00:00
aws: Add regression test for AWS on KVM on x86_64 architecture.

- - - - -
298a15ea by Richard W.M. Jones at 2018-10-31T15:47:13+00:00
aws: Add regression test for AWS on baremetal on x86_64 architecture.

- - - - -
350291e1 by Richard W.M. Jones at 2018-10-31T15:54:10+00:00
aws: Add regression test for AWS on Xen on x86_64 architecture.

- - - - -
c7e40173 by Richard W.M. Jones at 2018-10-31T19:04:22+00:00
Version 1.19.

- - - - -
ff6458b9 by Richard W.M. Jones at 2018-11-27T14:33:20+00:00
aws: Add regression test for AWS on KVM on ARM architecture.

- - - - -
ba7d198c by Richard W.M. Jones at 2019-10-03T09:08:19+01:00
build: Remove *~ files on make clean.

- - - - -
44154cf8 by Richard W.M. Jones at 2019-10-03T10:16:36+01:00
Arrange tests in subdirectories.

This simplifies and isolates each test.

- - - - -
e52beb21 by Richard W.M. Jones at 2019-10-03T10:16:36+01:00
build: Add .gitignore to tarball.

Mainly to keep maintainer-check-extra-dist happy.

- - - - -
5cefe863 by Richard W.M. Jones at 2019-10-03T10:16:36+01:00
maintainer: Add rules for maintainers.

Adds:
make maintainer-check-extra-dist
make maintainer-commit
make maintainer-tag

- - - - -
fd42f87e by Richard W.M. Jones at 2019-10-03T10:21:12+01:00
Version 1.20.

- - - - -
0a0d9fa7 by Richard W.M. Jones at 2019-10-04T16:16:50+03:00
Fix virt-what-cpuid-helper.

The value returned in %eax is the max_entry (eg. 0x40000000
if there are no further leafs).  However it is not reliable.
In addition if there are multiple leafs we should probably
only print the highest one.

Also use uint32_t instead of unsigned int.

Thanks: Paolo Bonzini.

- - - - -
f317e788 by Richard W.M. Jones at 2019-10-04T16:31:31+03:00
Add support for Nutanix Acropolis Hypervisor (AHV) (RHBZ#1756381).

Thanks: Cristian Seres for providing access to a guest.

- - - - -
5cdf7409 by Richard W.M. Jones at 2019-10-04T18:30:01+01:00
helper: Fix KVM signature.

Thanks: Paolo Bonzini.

- - - - -
3aa4ad0f by willem van de velde at 2019-10-22T11:58:01+01:00
Fix incorrect detection of MS Surfacebook 2 as a virtual machine.

- - - - -
e2c49cda by Ville Skyttä at 2020-01-16T08:38:02+00:00
docker: Check for /.dockerenv too

/.dockerinit may no longer exist.

Ref https://github.com/moby/moby/issues/18355

- - - - -
57f0c3cc by Ville Skyttä at 2020-01-16T08:38:02+00:00
docker: Lookup from /proc/self/cgroup too

Refs https://github.com/moby/moby/issues/18355

- - - - -
1df728aa by Jordan Webb at 2020-07-07T16:02:50+01:00
Add podman support

- - - - -
60d903fb by Richard W.M. Jones at 2021-04-13T09:47:54+01:00
Simplify and fix invocation of cpuid.

Fixes a crash on some platforms identified by Yongkui Guo in
https://bugzilla.redhat.com/show_bug.cgi?id=1756381#c15

- - - - -
64863087 by Richard W.M. Jones at 2021-04-19T12:56:58+01:00
Version 1.21.

- - - - -
afd29f0e by Jeremy Bicha at 2022-04-15T14:31:52-04:00
New upstream version 1.21
- - - - -


12 changed files:

- + .gitignore
- Makefile.am
- Makefile.in
- aclocal.m4
- configure
- configure.ac
- + tests/Makefile.am
- + tests/Makefile.in
- + tests/aws-baremetal-x86/Makefile.am
- + tests/aws-baremetal-x86/Makefile.in
- tests/test-aws-baremetal-x86.sh → tests/aws-baremetal-x86/test.sh
- + tests/aws-kvm-arm/Makefile.am


The diff was not included because it is too large.


View it on GitLab: https://salsa.debian.org/libvirt-team/virt-what/-/compare/a45e761fca46ba43c0cc4a43c2f29c5869a1ae33...afd29f0e30c347c732770276b09a4586c6a7e16f

-- 
View it on GitLab: https://salsa.debian.org/libvirt-team/virt-what/-/compare/a45e761fca46ba43c0cc4a43c2f29c5869a1ae33...afd29f0e30c347c732770276b09a4586c6a7e16f
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-libvirt-commits/attachments/20220415/fc8d862c/attachment-0001.htm>


More information about the Pkg-libvirt-commits mailing list