qemu/kvm: dmidecode: look for 'KVM'
authorAndrew Jones <drjones@redhat.com>
Tue, 27 Oct 2015 17:16:04 +0000 (18:16 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Mon, 31 Oct 2016 10:16:42 +0000 (06:16 -0400)
commit0a970821762fd2ad80342086c476c41f410a182f
treee5e64996fec991f939596ff02b3072bfc37df6db
parent89502750b9b979c3cb47978e3ad027a44b1190b7
qemu/kvm: dmidecode: look for 'KVM'

We can check the product name for 'KVM' to determine if we're
accelerated. This only works for arm/aarch64 targets boot with
AAVMF and on RHEL x86 targets (which already have KVM in the cpuid
leaf), but it doesn't hurt to try on all.

(cherry picked from commit 6fe2ebaec32d8f554749807bc21983506647a9d5)
Makefile.am
tests/qemu-smbios-kvm/proc/cpuinfo [new file with mode: 0644]
tests/qemu-smbios-kvm/proc/self/status [new file with mode: 0644]
tests/qemu-smbios-kvm/sbin/dmidecode [new file with mode: 0755]
tests/qemu-smbios-kvm/sbin/uname [new file with mode: 0755]
tests/qemu-smbios-kvm/sbin/virt-what-cpuid-helper [new file with mode: 0755]
tests/test-qemu-smbios-kvm.sh [new file with mode: 0755]
virt-what.in