Add IA64-specific tests for virtualization (RHBZ#707508).
authorRichard W.M. Jones <rjones@redhat.com>
Thu, 26 May 2011 14:40:59 +0000 (15:40 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Thu, 26 May 2011 14:55:41 +0000 (15:55 +0100)
commit3ea952163f0c28cd88f8473bb015df892c4247bf
tree8363809b506ac8f2aa32983d9f7a1c0037cc462e
parent4fbbc8153ab74d5448bbb6d1113f1bc39f55402a
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).
19 files changed:
.gitignore
Makefile.am
configure.ac
tests/baremetal/sbin/uname [new file with mode: 0755]
tests/esx4.1/sbin/uname [new file with mode: 0755]
tests/hyperv/sbin/uname [new file with mode: 0755]
tests/kvm-explicit-cpu/sbin/uname [new file with mode: 0755]
tests/kvm/sbin/uname [new file with mode: 0755]
tests/linux-vserver/sbin/uname [new file with mode: 0755]
tests/lx86/sbin/uname [new file with mode: 0755]
tests/parallels-desktop/sbin/uname [new file with mode: 0755]
tests/qemu/sbin/uname [new file with mode: 0755]
tests/rhel5-xen-dom0/sbin/uname [new file with mode: 0755]
tests/rhel5-xen-domU-hvm/sbin/uname [new file with mode: 0755]
tests/rhel5-xen-domU-pv/sbin/uname [new file with mode: 0755]
tests/zvm/sbin/uname [new file with mode: 0755]
virt-what-ia64-xen-rdtsc-test.c [new file with mode: 0644]
virt-what.in
virt-what.pod