X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=virt-what.in;h=d37da85302e05283f96af5bdc1781067406f7596;hb=37b0b4f14bd8e39beec6d4e1b860d7aab415590b;hp=6daba345cf033126ea0357b6df60e760da0c0d5a;hpb=224aff8da8fad6929d9d117c5230baf28e6c6890;p=virt-what.git diff --git a/virt-what.in b/virt-what.in index 6daba34..d37da85 100644 --- a/virt-what.in +++ b/virt-what.in @@ -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