summaryrefslogtreecommitdiffstats
path: root/target-i386/cpu.h
diff options
context:
space:
mode:
authorAndre Przywara <andre.przywara@amd.com>2009-06-06 01:03:29 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-16 15:36:47 -0500
commitef7681389f1d5bd4bba9b66504df8a0b768b27b1 (patch)
tree48a4ba8cff319cfcdd78b5387a8ffb98566f727c /target-i386/cpu.h
parent09695a4ae31f02552aff9cc8dff7ccca445a0778 (diff)
downloadhqemu-ef7681389f1d5bd4bba9b66504df8a0b768b27b1.zip
hqemu-ef7681389f1d5bd4bba9b66504df8a0b768b27b1.tar.gz
allow CPUID vendor override
KVM-enabled QEMU will always report the vendor ID of the physical CPU it is running on. Allow to override this if explicitly requested on the command line. It will not suffice to name a CPU type (like -cpu phenom), but you have to explicitly set the vendor: -cpu phenom,vendor=AuthenticAMD Signed-off-by: Andre Przywara <andre.przywara@amd.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'target-i386/cpu.h')
-rw-r--r--target-i386/cpu.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/target-i386/cpu.h b/target-i386/cpu.h
index d7b32d4..3cd391a 100644
--- a/target-i386/cpu.h
+++ b/target-i386/cpu.h
@@ -655,6 +655,7 @@ typedef struct CPUX86State {
uint32_t cpuid_ext2_features;
uint32_t cpuid_ext3_features;
uint32_t cpuid_apic_id;
+ int cpuid_vendor_override;
/* MTRRs */
uint64_t mtrr_fixed[11];
OpenPOWER on IntegriCloud