+elif [ "$arch" = "ia64" ]; then
+ if [ -d "${root}/sys/bus/xen" -a ! -d "${root}/sys/bus/xen-backend" ]; then
+ # PV-on-HVM drivers installed in a Xen guest.
+ echo xen
+ echo xen-hvm
+ else
+ # There is no virt leaf on IA64 HVM. This is a last-ditch
+ # attempt to detect something is virtualized by using a
+ # timing attack.
+ virt-what-ia64-xen-rdtsc-test > /dev/null 2>&1
+ case "$?" in
+ 0) ;; # not virtual
+ 1) # Could be some sort of virt, or could just be a bit slow.
+ echo virt
+ esac
+ fi