virt: detect dmi before cpuid
authorChristian Hesse <mail@eworm.de>
Mon, 23 Nov 2015 12:55:04 +0000 (13:55 +0100)
committerChristian Hesse <mail@eworm.de>
Mon, 23 Nov 2015 13:02:18 +0000 (14:02 +0100)
commit050e65ada2e0023a1a4c953522f39846c6bdebf8
treee559ac7bd37759f200e07e07bcf58a5c3ea70b18
parent8a85b710aaf40741b0990b7f923f35c923a2adab
virt: detect dmi before cpuid

Virtualbox should be detected as 'oracle'. This used to work but broke
with commit:

    commit 75f86906c52735c98dc0aa7e24b773edb42ee814
    Author: Lennart Poettering <lennart@poettering.net>
    Date:   Mon Sep 7 13:42:47 2015 +0200

    basic: rework virtualization detection API

We swap detection for dmi and cpuid, this fixes Virtualbox with KVM.
Hopefully it does not break anything else.
src/basic/virt.c