virt: enable detecting QEMU (TCG) via CPUID (#6399)
authorDaniel Berrange <berrange@redhat.com>
Wed, 19 Jul 2017 09:06:07 +0000 (10:06 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 19 Jul 2017 09:06:07 +0000 (11:06 +0200)
commit5588612e9e8828691f13141e3fcebe08a59201fe
tree3e4b0eb4e58320a2c59f61bbc6a224a914ca0c0d
parenta04efff8a7332c3a87478374410d7341b51795cc
virt: enable detecting QEMU (TCG) via CPUID (#6399)

QEMU >= 2.10 will include a CPUID leaf with value "TCGTCGTCGTCG"
on x86 when running with the TCG CPU emulator:

  https://lists.gnu.org/archive/html/qemu-devel/2017-07/msg05231.html

Existing methods of detecting QEMU are left unchanged for sake of
backcompatibility.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/basic/virt.c