[PULL 0/7] Migration 20230426 patches

Juan Quintela posted 7 patches 1 year ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20230426181253.13286-1-quintela@redhat.com
Maintainers: Juan Quintela <quintela@redhat.com>, Peter Xu <peterx@redhat.com>, Leonardo Bras <leobras@redhat.com>, John Snow <jsnow@redhat.com>, Cleber Rosa <crosa@redhat.com>
There is a newer version of this series
MAINTAINERS                       |   2 +
migration/migration.c             | 429 -----------------------------
migration/migration.h             |   2 -
migration/options.c               | 442 +++++++++++++++++++++++++++++-
migration/options.h               |  12 +
migration/postcopy-ram.c          |  59 ++--
migration/postcopy-ram.h          |   3 +-
migration/savevm.c                |   6 +-
migration/tls.c                   |   3 +-
scripts/vmstate-static-checker.py |  13 +-
10 files changed, 501 insertions(+), 470 deletions(-)
[PULL 0/7] Migration 20230426 patches
Posted by Juan Quintela 1 year ago
The following changes since commit 9c894df3a37d675652390f7dbbe2f65b7bad7efa:

  migration: Create migrate_max_bandwidth() function (2023-04-24 15:01:47 +0200)

are available in the Git repository at:

  https://gitlab.com/juan.quintela/qemu.git tags/migration-20230426-pull-request

for you to fetch changes up to 7b5cd8ff519e9fe3df6cda65428a6f1aa28a6ced:

  vmstate-static-checker: Recognize "num" field (2023-04-26 19:17:55 +0200)

----------------------------------------------------------------
Migration Pull request

Hi

This PULL request is on top of migration-20230424 already queued by
Richard.

It contains:
- MAINTAINERS: make peter and leo reviewers for migration (juan)
- Disable postcopy + multifd together. It needs at least to call
  send_sync before it will work. (juan)
- Improve postcopy error messages (peter)
- vmstate checker: Compare sizes of arrays correctly (peter)
- Move more capability functions to options.c (juan)

Please, apply.

Subject: [PULL 00/30] Migration 20230424 patches
Based-on: <20230424132730.70752-1-quintela@redhat.com>

----------------------------------------------------------------

Juan Quintela (3):
  MAINTAINERS: Add Leonardo and Peter as reviewers
  migration: Move migrate_use_tls() to options.c
  migration: Move qmp_migrate_set_parameters() to options.c

Leonardo Bras (1):
  migration: Disable postcopy + multifd migration

Peter Xu (3):
  migration: Allow postcopy_ram_supported_by_host() to report err
  migration/vmstate-dump: Dump array size too as "num"
  vmstate-static-checker: Recognize "num" field

 MAINTAINERS                       |   2 +
 migration/migration.c             | 429 -----------------------------
 migration/migration.h             |   2 -
 migration/options.c               | 442 +++++++++++++++++++++++++++++-
 migration/options.h               |  12 +
 migration/postcopy-ram.c          |  59 ++--
 migration/postcopy-ram.h          |   3 +-
 migration/savevm.c                |   6 +-
 migration/tls.c                   |   3 +-
 scripts/vmstate-static-checker.py |  13 +-
 10 files changed, 501 insertions(+), 470 deletions(-)

-- 
2.40.0
Re: [PULL 0/7] Migration 20230426 patches
Posted by Richard Henderson 1 year ago
On 4/26/23 19:12, Juan Quintela wrote:
> The following changes since commit 9c894df3a37d675652390f7dbbe2f65b7bad7efa:
> 
>    migration: Create migrate_max_bandwidth() function (2023-04-24 15:01:47 +0200)
> 
> are available in the Git repository at:
> 
>    https://gitlab.com/juan.quintela/qemu.git tags/migration-20230426-pull-request
> 
> for you to fetch changes up to 7b5cd8ff519e9fe3df6cda65428a6f1aa28a6ced:
> 
>    vmstate-static-checker: Recognize "num" field (2023-04-26 19:17:55 +0200)
> 
> ----------------------------------------------------------------
> Migration Pull request
> 
> Hi
> 
> This PULL request is on top of migration-20230424 already queued by
> Richard.
> 
> It contains:
> - MAINTAINERS: make peter and leo reviewers for migration (juan)
> - Disable postcopy + multifd together. It needs at least to call
>    send_sync before it will work. (juan)
> - Improve postcopy error messages (peter)
> - vmstate checker: Compare sizes of arrays correctly (peter)
> - Move more capability functions to options.c (juan)
> 
> Please, apply.

Build failures:

https://gitlab.com/qemu-project/qemu/-/jobs/4187732684#L2303

../migration/postcopy-ram.c:1368:6: error: conflicting types for 
'postcopy_ram_supported_by_host'; have '_Bool(MigrationIncomingState *)'
  1368 | bool postcopy_ram_supported_by_host(MigrationIncomingState *mis)
       |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from ../migration/migration.h:27,
                  from ../migration/postcopy-ram.c:22:
../migration/postcopy-ram.h:17:6: note: previous declaration of 
'postcopy_ram_supported_by_host' with type '_Bool(MigrationIncomingState *, Error **)'
    17 | bool postcopy_ram_supported_by_host(MigrationIncomingState *mis,
       |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


r~
Re: [PULL 0/7] Migration 20230426 patches
Posted by Juan Quintela 1 year ago
Richard Henderson <richard.henderson@linaro.org> wrote:
> On 4/26/23 19:12, Juan Quintela wrote:
>> The following changes since commit 9c894df3a37d675652390f7dbbe2f65b7bad7efa:
>>    migration: Create migrate_max_bandwidth() function (2023-04-24
>> 15:01:47 +0200)
>> are available in the Git repository at:
>>    https://gitlab.com/juan.quintela/qemu.git
>> tags/migration-20230426-pull-request
>> for you to fetch changes up to
>> 7b5cd8ff519e9fe3df6cda65428a6f1aa28a6ced:
>>    vmstate-static-checker: Recognize "num" field (2023-04-26
>> 19:17:55 +0200)
>> ----------------------------------------------------------------
>> Migration Pull request
>> Hi
>> This PULL request is on top of migration-20230424 already queued by
>> Richard.
>> It contains:
>> - MAINTAINERS: make peter and leo reviewers for migration (juan)
>> - Disable postcopy + multifd together. It needs at least to call
>>    send_sync before it will work. (juan)
>> - Improve postcopy error messages (peter)
>> - vmstate checker: Compare sizes of arrays correctly (peter)
>> - Move more capability functions to options.c (juan)
>> Please, apply.
>
> Build failures:
>
> https://gitlab.com/qemu-project/qemu/-/jobs/4187732684#L2303

Fixed.

Sorry about that.
It only fails on hosts that don't support userfaultd() (i.e. non-linux).

Will resend.

Sorry for the noise.

Later, Juan.


>
> ../migration/postcopy-ram.c:1368:6: error: conflicting types for
> 'postcopy_ram_supported_by_host'; have '_Bool(MigrationIncomingState
> *)'
>  1368 | bool postcopy_ram_supported_by_host(MigrationIncomingState *mis)
>       |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> In file included from ../migration/migration.h:27,
>                  from ../migration/postcopy-ram.c:22:
> ../migration/postcopy-ram.h:17:6: note: previous declaration of
> 'postcopy_ram_supported_by_host' with type
> '_Bool(MigrationIncomingState *, Error **)'
>    17 | bool postcopy_ram_supported_by_host(MigrationIncomingState *mis,
>       |      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
> r~