allow overriding of CPUID level on command line
commita8a358bf35e660b1c0bf5adc5446836c6c0d1c73
authorAndre Przywara <andre.przywara@amd.com>
Thu, 20 Aug 2009 19:03:48 +0000 (20 21:03 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 28 Aug 2009 00:33:15 +0000 (27 19:33 -0500)
treefb71b17362786e0630d53ac5692c79d00d56d484
parent400281af34e5ee6aa9f5496b53d8f82c6fef9319
allow overriding of CPUID level on command line

The CPUID level determines how many CPUID leafs are exposed to the guest.
Some features (like multi-core) cannot be propagated without the proper
level, but guests maybe confused by bogus entries in some leafs.
So add level= and xlevel= to the list of -cpu options to allow the user to
override the default settings. While at it, merge unnecessary local
variables into one and allow hexadecimal arguments.

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