Skip to content

Convert migrate_set_speed, migrate_set_downtime to QObject

Markus Armbruster qemu-devel 2 versions – Applied

Status from this message: Applied all (including v4 of 2/8). Thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest8 patches 3 repliesApplied
  2. v28 patches 11 repliesSuperseded

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/8monitor: Document argument type 'M'monitor.c+2 -01 reply
2/8QDict: New qdict_get_double()qdict.c qdict.h+25 -02 replies
3/8monitor: New argument type 'b'monitor.c+64 -00 replies
4/8monitor: Use argument type 'b' for migrate_set_speedmigration.c qemu-monitor.hx+4 -160 replies
5/8monitor: convert do_migrate_set_speed() to QObjectmigration.c migration.h qemu-monitor.hx+4 -30 replies
6/8monitor: New argument type 'T'monitor.c+16 -10 replies
7/8monitor: Use argument type 'T' for migrate_set_downtimemigration.c qemu-monitor.hx+3 -140 replies
8/8monitor: convert do_migrate_set_downtime() to QObjectmigration.c migration.h qemu-monitor.hx+6 -30 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [Qemu-devel] [PATCH v3 0/8] Convert migrate_set_speed, migrate_set_downtime to QObject

These conversions take a few extra steps, because do_migrate_set_speed() and do_migrate_set_downtime() interpret their string argument as floating-point number + optional unit suffix. This is quite inappropriate for QMP.

v3: reject NaN and infinity in monitor (we shouldn't get them over
QMP, because JSON doesn't support them)
Bug fixes

v2: Initial post

v1: Never existed (I fat-fingered "PATCH v2" into my initial post)

Markus Armbruster (8):
monitor: Document argument type 'M'
QDict: New qdict_get_double()
monitor: New argument type 'b'
monitor: Use argument type 'b' for migrate_set_speed
monitor: convert do_migrate_set_speed() to QObject
monitor: New argument type 'T'
monitor: Use argument type 'T' for migrate_set_downtime
monitor: convert do_migrate_set_downtime() to QObject

 migration.c     |   38 +++++--------------------
 migration.h     |    5 ++-
 monitor.c       |   81 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 qdict.c         |   24 ++++++++++++++++
 qdict.h         |    1 +
 qemu-monitor.hx |   10 ++++---
 6 files changed, 123 insertions(+), 36 deletions(-)