qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PULL for-1.6 0/2] QMP queue
@ 2013-08-01 14:32 Luiz Capitulino
  2013-08-01 14:32 ` [Qemu-devel] [PULL 1/2] migration: send total time in QMP at "completed" stage Luiz Capitulino
  2013-08-01 14:32 ` [Qemu-devel] [PULL 2/2] migration: don't use uninitialized variables Luiz Capitulino
  0 siblings, 2 replies; 3+ messages in thread
From: Luiz Capitulino @ 2013-08-01 14:32 UTC (permalink / raw)
  To: qemu-devel; +Cc: aliguori

The following changes since commit 1197cbb9eda1dc82e2fa1815ca62bc3de158353e:

  qdev: Use clz in print_size (2013-07-31 07:54:21 -0500)

are available in the git repository at:

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

for you to fetch changes up to 8c0426aed1d2279845e6a2c3355da8b5d9926cb6:

  migration: don't use uninitialized variables (2013-08-01 09:40:46 -0400)

----------------------------------------------------------------
Pawit Pornkitprasan (2):
      migration: send total time in QMP at "completed" stage
      migration: don't use uninitialized variables

 migration.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

-- 
1.8.1.4

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [Qemu-devel] [PULL 1/2] migration: send total time in QMP at "completed" stage
  2013-08-01 14:32 [Qemu-devel] [PULL for-1.6 0/2] QMP queue Luiz Capitulino
@ 2013-08-01 14:32 ` Luiz Capitulino
  2013-08-01 14:32 ` [Qemu-devel] [PULL 2/2] migration: don't use uninitialized variables Luiz Capitulino
  1 sibling, 0 replies; 3+ messages in thread
From: Luiz Capitulino @ 2013-08-01 14:32 UTC (permalink / raw)
  To: qemu-devel; +Cc: aliguori

From: Pawit Pornkitprasan <p.pawit@gmail.com>

The "completed" stage sets total_time but not has_total_time and
thus it is not sent via QMP reply (but sent via HMP nevertheless)

Signed-off-by: Pawit Pornkitprasan <p.pawit@gmail.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Orit Wasserman <owasserm@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
---
 migration.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/migration.c b/migration.c
index 9fc7294..3f682cd 100644
--- a/migration.c
+++ b/migration.c
@@ -231,6 +231,7 @@ MigrationInfo *qmp_query_migrate(Error **errp)
 
         info->has_status = true;
         info->status = g_strdup("completed");
+        info->has_total_time = true;
         info->total_time = s->total_time;
         info->has_downtime = true;
         info->downtime = s->downtime;
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [Qemu-devel] [PULL 2/2] migration: don't use uninitialized variables
  2013-08-01 14:32 [Qemu-devel] [PULL for-1.6 0/2] QMP queue Luiz Capitulino
  2013-08-01 14:32 ` [Qemu-devel] [PULL 1/2] migration: send total time in QMP at "completed" stage Luiz Capitulino
@ 2013-08-01 14:32 ` Luiz Capitulino
  1 sibling, 0 replies; 3+ messages in thread
From: Luiz Capitulino @ 2013-08-01 14:32 UTC (permalink / raw)
  To: qemu-devel; +Cc: aliguori

From: Pawit Pornkitprasan <p.pawit@gmail.com>

The qmp_migrate method uses the 'blk' and 'inc' parameter without
checking if they're valid or not (they may be uninitialized if
command is received via QMP)

Signed-off-by: Pawit Pornkitprasan <p.pawit@gmail.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
---
 migration.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/migration.c b/migration.c
index 3f682cd..1402fa7 100644
--- a/migration.c
+++ b/migration.c
@@ -400,8 +400,8 @@ void qmp_migrate(const char *uri, bool has_blk, bool blk,
     MigrationParams params;
     const char *p;
 
-    params.blk = blk;
-    params.shared = inc;
+    params.blk = has_blk && blk;
+    params.shared = has_inc && inc;
 
     if (s->state == MIG_STATE_ACTIVE || s->state == MIG_STATE_SETUP) {
         error_set(errp, QERR_MIGRATION_ACTIVE);
-- 
1.8.1.4

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-08-01 14:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-01 14:32 [Qemu-devel] [PULL for-1.6 0/2] QMP queue Luiz Capitulino
2013-08-01 14:32 ` [Qemu-devel] [PULL 1/2] migration: send total time in QMP at "completed" stage Luiz Capitulino
2013-08-01 14:32 ` [Qemu-devel] [PULL 2/2] migration: don't use uninitialized variables Luiz Capitulino

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).