cpuid=$(virt-what-cpuid-helper)
# Check for various products in the BIOS information.
-# Note that dmidecode doesn't exist on non-PC architectures. On these,
-# this will return an error which is ignored (error message redirected
-# into $dmi variable).
+# Note that dmidecode doesn't exist on all architectures. On the ones
+# it does not, then this will return an error, which is ignored (error
+# message redirected into the $dmi variable).
dmi=$(LANG=C dmidecode 2>&1)
skip_qemu_kvm=true
fi
+# Check for oVirt.
+if echo "$dmi" | grep -q 'Manufacturer: oVirt'; then
+ echo ovirt
+fi
+
# Check for Xen.
if [ "$cpuid" = "XenVMMXenVMM" ]; then
# using KVM acceleration or not.
echo qemu
skip_lkvm=true
+ elif echo "$dmi" | grep -q 'Manufacturer: QEMU'; then
+ # We don't have enough information to determine if we're
+ # using KVM acceleration or not.
+ echo qemu
+ skip_lkvm=true
fi
else
# XXX This is known to fail for qemu with the explicit -cpu