]> git.proxmox.com Git - qemu.git/commit - target-i386/cpu.c
target-i386/cpu: Name new CPUID bits
authorAndre Przywara <osp@andrep.de>
Wed, 14 Nov 2012 18:28:52 +0000 (16:28 -0200)
committerAndreas Färber <afaerber@suse.de>
Thu, 15 Nov 2012 02:47:05 +0000 (03:47 +0100)
commitc8acc380be7c7bb489037c927a2a5c217535f864
tree27d7f9bdf2980b0e88fee315677319d0d0afb975
parentda4fea066d9e08654940801d46e350a8bbd56547
target-i386/cpu: Name new CPUID bits

Update QEMU's knowledge of CPUID bit names. This allows to
enable/disable those new features on QEMU's command line when
using KVM and prepares future feature enablement in QEMU.

This adds F16C, RDRAND, LWP, TBM, TopoExt, PerfCtr_Core, PerfCtr_NB,
FSGSBASE, BMI1, AVX2, BMI2, ERMS, PCID, InvPCID, RTM, RDSeed and ADX.

Sources where the AMD BKDG for Family 15h/Model 10h, Intel Software
Developer Manual, and the Linux kernel for the leaf 7 bits.

Signed-off-by: Andre Przywara <osp@andrep.de>
Signed-off-by: Boris Ostrovsky <boris.ostrovsky@amd.com>
[ehabkost: added CPUID_EXT_PCID]
[ehabkost: edited commit message]
[ehabkost: rebased against latest qemu.git master]
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
target-i386/cpu.c
target-i386/cpu.h