chiark / gitweb /
detect-virt: dmi: look for KVM
authorAndrew Jones <drjones@redhat.com>
Tue, 3 Nov 2015 19:31:03 +0000 (13:31 -0600)
committerSven Eden <yamakuzure@gmx.net>
Wed, 26 Apr 2017 10:58:55 +0000 (12:58 +0200)
commit5d945323d594ac23a43d9936c7e2f5266776a7b1
tree342c3ffbb5b9c3239068d2492fdb33fea8309ae0
parent27edf6f36e27bff66b04908b4dcebd359ae08116
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