aboutsummaryrefslogtreecommitdiff
path: root/monitor.c
diff options
context:
space:
mode:
authorEduardo Habkost <ehabkost@redhat.com>2017-02-22 16:00:28 -0300
committerEduardo Habkost <ehabkost@redhat.com>2017-02-27 13:23:31 -0300
commitf99fd7ca2afd33bb067e78740c4ee5a689494690 (patch)
tree877635048d0daa6a675d95cc35d11bf5836a0340 /monitor.c
parent5adbed3088ded43acdfb5da749441c38af671833 (diff)
downloadqemu-f99fd7ca2afd33bb067e78740c4ee5a689494690.zip
qemu-f99fd7ca2afd33bb067e78740c4ee5a689494690.tar.gz
qemu-f99fd7ca2afd33bb067e78740c4ee5a689494690.tar.bz2
i386: Implement query-cpu-model-expansion QMP command
Implement query-cpu-model-expansion for target-i386. This should meet all the requirements while being simple. In the case of static expansion, it will use the new "base" CPU model, and in the case of full expansion, it will keep the original CPU model name+props, and append extra properties. A future follow-up should improve the implementation of type=full, so that it returns more detailed data, including every writable QOM property in the CPU object. Cc: libvir-list@redhat.com Cc: Jiri Denemark <jdenemar@redhat.com> Message-Id: <20170222190029.17243-3-ehabkost@redhat.com> Tested-by: Jiri Denemark <jdenemar@redhat.com> Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'monitor.c')
-rw-r--r--monitor.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/monitor.c b/monitor.c
index f8f4a07..b68944d 100644
--- a/monitor.c
+++ b/monitor.c
@@ -984,8 +984,10 @@ static void qmp_unregister_commands_hack(void)
#ifndef TARGET_ARM
qmp_unregister_command("query-gic-capabilities");
#endif
-#if !defined(TARGET_S390X)
+#if !defined(TARGET_S390X) && !defined(TARGET_I386)
qmp_unregister_command("query-cpu-model-expansion");
+#endif
+#if !defined(TARGET_S390X)
qmp_unregister_command("query-cpu-model-baseline");
qmp_unregister_command("query-cpu-model-comparison");
#endif