fix CPUID vendor override
authorAndre Przywara <andre.przywara@amd.com>
Wed, 2 Jun 2010 09:57:47 +0000 (11:57 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 28 Jun 2010 16:06:03 +0000 (13:06 -0300)
commit8935499831312ec3e108287d3d49614915847ab2
treeb3a9504be32e2b18518cd4d8e20b0d0e530de5fa
parentbe41cbe0368b5becac02a1bf885341ba25ba9a9e
fix CPUID vendor override

the meaning of vendor_override is actually the opposite of how it
is currently used :-(
Fix it to allow KVM to export the non-native CPUID vendor if
explicitly requested by the user.

The intended behavior is:
With TCG:
  - always inject the configured vendor (either hard-coded, in config
    files or via ",vendor=" commandline)
With KVM:
  - by default inject the host's vendor
  - if the user specifies ",vendor=" on the commandline, use this
    instead of the host's vendor
  - all pre-configured vendors (hard-coded, config file) are ignored

Signed-off-by: Andre Przywara <andre.przywara@amd.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
target-i386/cpuid.c