detect-virt: detect in best-heuristic order
authorAndrew Jones <drjones@redhat.com>
Tue, 3 Nov 2015 20:49:38 +0000 (14:49 -0600)
committerAndrew Jones <drjones@redhat.com>
Wed, 4 Nov 2015 17:19:33 +0000 (11:19 -0600)
commit42685451ed0f1c422395a05820ee4328c352808f
treeb43b92686d5e7e67d478df38a734836f434a7f23
parent51c41a97ecc36dc274d56755993826ede68e2086
detect-virt: detect in best-heuristic order

afaict, this will fix a regression caused by commit 75f86906c5.
Where we used to report "kvm" before that patch, without this patch,
we would only report "qemu". The reason is because cpuid detection
must come before dmi detection. Also, both can safely come before
other xen heuristics. Untested.
src/basic/virt.c