Skip to content

migrate: simplify migrate-set-parameters

Eric Blake qemu-devel 1 version Applied

Status from this message: Applied.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 8 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/3migrate: Fix cpu-throttle-increment regression in HMPhmp.c+1 -02 replies
2/3migrate: Share common MigrationParameters structhmp.c migration/migration.c qapi-schema.json+57 -753 replies
3/3migrate: Use boxed qapi for migrate-set-parametershmp.c migration/migration.c qapi-schema.json+46 -612 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchMarc-André LureauJuan Quintela
1/3R-b R-b
2/3R-b R-b
3/3R-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/3] migrate: simplify migrate-set-parameters

As promised earlier today, here's a patch series to simplify how one calls into qmp_migrate_set_parameters(). With this in place, Ashijeet's patches for the back-compat functions would look like:

void qmp_migrate_set_speed(int64_t valuebw, Error **errp)

{
    MigrationParameters *p = {
        .has_max_bandwidth = true,
        .max_bandwidth = valuebw,
    };
    qmp_migrate_set_parameters(&p, errp);
}

This series is a net reduction in lines, so it has to be good, right? :)

Oh, and I found (and fixed) a 2.7 regression while touching this stuff.

Eric Blake (3):
migrate: Fix cpu-throttle-increment regression in HMP
migrate: Share common MigrationParameters struct
migrate: Use boxed qapi for migrate-set-parameters

 qapi-schema.json      | 86 +++++++++++++++++----------------------------------
 hmp.c                 | 50 ++++++++++++++++--------------
 migration/migration.c | 72 ++++++++++++++++++++----------------------
 3 files changed, 88 insertions(+), 120 deletions(-)
Signature · 1 line
2.7.4