diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2017-02-22 15:39:19 -0300 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2017-02-27 13:23:25 -0300 |
commit | 0bacd8b3046fbc9bf710619ac3edd4bbca2b40ec (patch) | |
tree | b4551886ccf11a63dbd4f0c9d0c64a58e9ab22d9 /target/i386/cpu-qom.h | |
parent | 6900d1cc8aa6490d40f5ffbb91ada9d5733868f5 (diff) |
i386: Don't set CPUClass::cpu_def on "max" model
Host CPUID info is used by the "max" CPU model only in KVM mode.
Move the initialization of CPUID data for "max" from class_init
to instance_init, and don't set CPUClass::cpu_def for "max".
Message-Id: <20170222183919.11928-4-ehabkost@redhat.com>
Tested-by: Richard W.M. Jones <rjones@redhat.com>
Tested-by: Jiri Denemark <jdenemar@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'target/i386/cpu-qom.h')
-rw-r--r-- | target/i386/cpu-qom.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/target/i386/cpu-qom.h b/target/i386/cpu-qom.h index 14abd0a8c1..f6c704c3a9 100644 --- a/target/i386/cpu-qom.h +++ b/target/i386/cpu-qom.h @@ -60,7 +60,9 @@ typedef struct X86CPUClass { CPUClass parent_class; /*< public >*/ - /* Should be eventually replaced by subclass-specific property defaults. */ + /* CPU definition, automatically loaded by instance_init if not NULL. + * Should be eventually replaced by subclass-specific property defaults. + */ X86CPUDefinition *cpu_def; bool kvm_required; |