set CPUID bits to present cores and threads topology
authorAndre Przywara <andre.przywara@amd.com>
Wed, 19 Aug 2009 13:42:42 +0000 (15:42 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 28 Aug 2009 00:33:15 +0000 (19:33 -0500)
commit400281af34e5ee6aa9f5496b53d8f82c6fef9319
tree44de8772409c8f19479ed5499585f5b6f2301b90
parentac72472b5fb8411fbeb6789187d67ad7aef69133
set CPUID bits to present cores and threads topology

Controlled by the enhanced -smp option set the CPUID bits to present the
guest the desired topology. This is vendor specific, but (with the exception
of the CMP_LEGACY bit) not conflicting, so we set all bits everytime.
There is no real multithreading support for AMD CPUs, so report cores
instead.

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
target-i386/helper.c