mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
i386: Register versioned CPU models
Add support for registration of multiple versions of CPU models. The existing CPU models will be registered with a "-v1" suffix. The -noTSX, -IBRS, and -IBPB CPU model variants will become versions of the original models in a separate patch, so make sure we register no versions for them. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <20190628002844.24894-5-ehabkost@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
164e779ce1
commit
dcafd1ef0a
4 changed files with 318 additions and 30 deletions
|
@ -36,13 +36,7 @@
|
|||
#define X86_CPU_GET_CLASS(obj) \
|
||||
OBJECT_GET_CLASS(X86CPUClass, (obj), TYPE_X86_CPU)
|
||||
|
||||
/**
|
||||
* X86CPUDefinition:
|
||||
*
|
||||
* CPU model definition data that was not converted to QOM per-subclass
|
||||
* property defaults yet.
|
||||
*/
|
||||
typedef struct X86CPUDefinition X86CPUDefinition;
|
||||
typedef struct X86CPUModel X86CPUModel;
|
||||
|
||||
/**
|
||||
* X86CPUClass:
|
||||
|
@ -64,7 +58,7 @@ typedef struct X86CPUClass {
|
|||
/* CPU definition, automatically loaded by instance_init if not NULL.
|
||||
* Should be eventually replaced by subclass-specific property defaults.
|
||||
*/
|
||||
X86CPUDefinition *cpu_def;
|
||||
X86CPUModel *model;
|
||||
|
||||
bool host_cpuid_required;
|
||||
int ordering;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue