detect-virt: dmi: look for KVM
authorAndrew Jones <drjones@redhat.com>
Tue, 3 Nov 2015 19:31:03 +0000 (13:31 -0600)
committerAndrew Jones <drjones@redhat.com>
Wed, 4 Nov 2015 17:19:40 +0000 (11:19 -0600)
commit3728dcde4542b7b2792d9ef0baeb742d82983b03
tree8892954dcf94549c21be7ef63ff3fa308673a8c8
parent2ef8a4c4399dcb7b6fcaecd41f27377b584e9a4b
detect-virt: dmi: look for KVM

Some guests (ARM, AArch64, x86-RHEL) have 'KVM' in the product name.
Look for that first in order to more precisely report "kvm" when
detecting a QEMU/KVM guest. Without this patch we report "qemu",
even if KVM acceleration is in use on ARM/AArch64 guests.

I've only tested a backported version of this and the previous
patch on an AArch64 guest (which worked). Of course it would be
nice to get regression testing on all guest types that depend on
dmi done.
src/basic/virt.c