aboutsummaryrefslogtreecommitdiff
path: root/target/i386
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2016-11-16 16:21:39 -0200
committerEduardo Habkost <ehabkost@redhat.com>2017-01-12 15:51:36 -0200
commit8ed877b78498c89aa7ce5c76aa20841ff5072796 (patch)
tree65c5e5e44464ec1e9767a347a8677acdf371acb5 /target/i386
parentcdda2018e3b9ce0c18938767dfdb1e05a05b67ca (diff)
downloadqemu-8ed877b78498c89aa7ce5c76aa20841ff5072796.zip
qemu-8ed877b78498c89aa7ce5c76aa20841ff5072796.tar.gz
qemu-8ed877b78498c89aa7ce5c76aa20841ff5072796.tar.bz2
qmp: Report QOM type name on query-cpu-definitions
The new typename attribute on query-cpu-definitions will be used to help management software use device-list-properties to check which properties can be set using -cpu or -global for the CPU model. Signed-off-by: Eduardo Habkost <ehabkost@redhat.com> Message-Id: <1479320499-29818-1-git-send-email-ehabkost@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'target/i386')
-rw-r--r--target/i386/cpu.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/i386/cpu.c b/target/i386/cpu.c
index b0640f1..a149c8d 100644
--- a/target/i386/cpu.c
+++ b/target/i386/cpu.c
@@ -2235,6 +2235,7 @@ static void x86_cpu_definition_entry(gpointer data, gpointer user_data)
info->name = x86_cpu_class_get_model_name(cc);
x86_cpu_class_check_missing_features(cc, &info->unavailable_features);
info->has_unavailable_features = true;
+ info->q_typename = g_strdup(object_class_get_name(oc));
entry = g_malloc0(sizeof(*entry));
entry->value = info;