aboutsummaryrefslogtreecommitdiff
path: root/target/i386/cpu-qom.h
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2017-01-19 19:04:45 -0200
committerEduardo Habkost <ehabkost@redhat.com>2017-02-27 13:23:03 -0300
commitf48c88370399b106ab7ae3fe26aa49f52bb57cce (patch)
tree5d433b2d355068b633db7acb9a493b20856f2a06 /target/i386/cpu-qom.h
parent771a13e90d24bc3db5ae102cf0da6f645eecf06c (diff)
i386: Add ordering field to CPUClass
Instead of using kvm_enabled to order the "-cpu help" list, use a new "ordering" field for that. Message-Id: <20170119210449.11991-3-ehabkost@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.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/i386/cpu-qom.h b/target/i386/cpu-qom.h
index 8cd607e9a2..14abd0a8c1 100644
--- a/target/i386/cpu-qom.h
+++ b/target/i386/cpu-qom.h
@@ -48,6 +48,7 @@ typedef struct X86CPUDefinition X86CPUDefinition;
* X86CPUClass:
* @cpu_def: CPU model definition
* @kvm_required: Whether CPU model requires KVM to be enabled.
+ * @ordering: Ordering on the "-cpu help" CPU model list.
* @migration_safe: See CpuDefinitionInfo::migration_safe
* @parent_realize: The parent class' realize handler.
* @parent_reset: The parent class' reset handler.
@@ -63,6 +64,7 @@ typedef struct X86CPUClass {
X86CPUDefinition *cpu_def;
bool kvm_required;
+ int ordering;
bool migration_safe;
/* Optional description of CPU model.