Add oVirt (RHBZ#1249438).
[virt-what.git] / virt-what.in
index 6daba34..d37da85 100644 (file)
@@ -94,9 +94,9 @@ fi
 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)
 
@@ -203,6 +203,11 @@ if echo "$dmi" | grep -q 'Vendor: Parallels'; then
     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
@@ -264,6 +269,11 @@ if ! "$skip_qemu_kvm"; 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