Skip to contentSkip to conversation

QMP queue

GIT PULL Luiz Capitulino 1 participant 4 messages Dec 20, 2013 – Jan 6, 2014

lore
Share & tools
lore
#0 lore raw

I've dropped the two series which need to be respun. As the fix I have from Paolo is pending for a long time, I figure it's better to send what I have in the queue now.

The following changes since commit f8251db121c3f051b22a7536b97d160c30bcccd4:

Merge remote-tracking branch 'agraf/tags/signed-ppc-for-upstream' into staging (2013-12-19 17:03:17 -0800)

are available in the git repository at:

git://repo.or.cz/qemu/qmp-unstable.git queue/qmp

for you to fetch changes up to 15e509df38e2ae88dd045cdce62edacd033c8386:

qemu-monitor: HMP cpu-add wrapper (2013-12-20 08:32:26 -0500)

----------------------------------------------------------------
Jason J. Herne (1):
qemu-monitor: HMP cpu-add wrapper

Paolo Bonzini (1):

      vl: add missing transition debug->finish_migrate
 hmp-commands.hx | 13 +++++++++++++
 hmp.c           | 10 ++++++++++
 hmp.h           |  1 +
 vl.c            |  1 +
 4 files changed, 25 insertions(+)
Signature · 1 line
1.8.1.4
#1 lore raw

[Qemu-devel] [PULL 1/2] vl: add missing transition debug->finish_migrate

From: Paolo Bonzini <[email protected]>

This fixes an abort if you invoke the "migrate" command while the guest is being debugged.

---
 vl.c | 1 +
 1 file changed, 1 insertion(+)
vl.c +1 -0
index 7511e70..0f67545 100644
@@ -591,6 +591,7 @@ typedef struct {
 static const RunStateTransition runstate_transitions_def[] = {
     /*     from      ->     to      */
     { RUN_STATE_DEBUG, RUN_STATE_RUNNING },
+    { RUN_STATE_DEBUG, RUN_STATE_FINISH_MIGRATE },
 
     { RUN_STATE_INMIGRATE, RUN_STATE_RUNNING },
     { RUN_STATE_INMIGRATE, RUN_STATE_PAUSED },
Signature · 1 line
1.8.1.4
#2 lore raw

[Qemu-devel] [PULL 2/2] qemu-monitor: HMP cpu-add wrapper

In reply to Luiz Capitulino

From: "Jason J. Herne" <[email protected]>

Add HMP cpu-add wrapper to allow cpu hot plugging via monitor.

---
 hmp-commands.hx | 13 +++++++++++++
 hmp.c           | 10 ++++++++++
 hmp.h           |  1 +
 3 files changed, 24 insertions(+)
hmp-commands.hx +13 -0
index ebe8e78..929550d 100644
@@ -1620,6 +1620,19 @@ Executes a qemu-io command on the given block device.
 ETEXI
 
     {
+        .name       = "cpu-add",
+        .args_type  = "id:i",
+        .params     = "id",
+        .help       = "add cpu",
+        .mhandler.cmd  = hmp_cpu_add,
+    },
+
+STEXI
+@item cpu-add @var{id}
+Add CPU with id @var{id}
+ETEXI
+
+    {
         .name       = "info",
         .args_type  = "item:s?",
         .params     = "[subcommand]",
hmp.c +10 -0
index 32ee285..c513f9b 100644
@@ -1525,6 +1525,16 @@ void hmp_nbd_server_stop(Monitor *mon, const QDict *qdict)
     hmp_handle_error(mon, &errp);
 }
 
+void hmp_cpu_add(Monitor *mon, const QDict *qdict)
+{
+    int cpuid;
+    Error *err = NULL;
+
+    cpuid = qdict_get_int(qdict, "id");
+    qmp_cpu_add(cpuid, &err);
+    hmp_handle_error(mon, &err);
+}
+
 void hmp_chardev_add(Monitor *mon, const QDict *qdict)
 {
     const char *args = qdict_get_str(qdict, "args");
hmp.h +1 -0
index 54cf71f..f92fc89 100644
@@ -89,5 +89,6 @@ void hmp_nbd_server_stop(Monitor *mon, const QDict *qdict);
 void hmp_chardev_add(Monitor *mon, const QDict *qdict);
 void hmp_chardev_remove(Monitor *mon, const QDict *qdict);
 void hmp_qemu_io(Monitor *mon, const QDict *qdict);
+void hmp_cpu_add(Monitor *mon, const QDict *qdict);
 
 #endif
Signature · 1 line
1.8.1.4
#3 lore raw
In reply to Luiz Capitulino
Quoted 3 lines · On Fri, 20 Dec 2013 11:38:54 -0500 Luiz Capitulino <[email protected]>…

I've dropped the two series which need to be respun. As the fix I have from Paolo is pending for a long time, I figure it's better to send what I have in the queue now.

Please, don't pull this one. I'm working on a more complete pull request, will send it in some minutes.