[virt-tools-list] [PATCH 0/2 virt-what] Fix detection of Xen HVM guest on IA64 (RHBZ#707508)
Richard W.M. Jones
rjones at redhat.com
Thu May 26 15:05:40 UTC 2011
The following two patches fix some instances of detecting Xen HVM
guests running on IA64.
Xen can be detected relatively easily if PV-on-HVM drivers are
installed, because these drivers create /sys/bus/xen directory. This
is only done if all other Xen tests have failed, so this shouldn't
affect the PV or dom0 case, or non-IA64 arches at all.
However if these have not been installed, then there's not a very easy
test for this. We fall back to using a timing attack, and if that
indicates that rdtsc is being unusually slow, then we print the single
fact "virt". Note that this is only done on IA64.
I tested the patched virt-what on:
- Xen RHEL 5.7 dom0 IA64
- Xen RHEL 5.7 domU HVM IA64 (note: with PV drivers installed)
- baremetal Fedora x86_64
Rich.
--
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw
More information about the virt-tools-list
mailing list