]> git.proxmox.com Git - mirror_qemu.git/commit - target/i386/cpu.c
target-i386: Enable CPUID[0x8000000A] if SVM is enabled
authorEduardo Habkost <ehabkost@redhat.com>
Wed, 21 Sep 2016 18:01:35 +0000 (15:01 -0300)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 27 Sep 2016 19:17:17 +0000 (16:17 -0300)
commit0c3d7c0051576d220e6da0a8ac08f2d8482e2f0b
tree9b1afea8b3ef45110e1b276d9188d336d10b088e
parentc39c0edf9bb3b968ba95484465a50c7b19f4aa3a
target-i386: Enable CPUID[0x8000000A] if SVM is enabled

SVM needs CPUID[0x8000000A] to be available. So if SVM is enabled
in a CPU model or explicitly in the command-line, adjust CPUID
xlevel to expose the CPUID[0x8000000A] leaf.

Reviewed-by: Richard Henderson <rth@twiddle.net>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target-i386/cpu.c
tests/test-x86-cpuid-compat.c