[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH V2 04/11] migration: remove migration_in_postcopy parameter
From: |
Peter Xu |
Subject: |
Re: [PATCH V2 04/11] migration: remove migration_in_postcopy parameter |
Date: |
Mon, 15 Jan 2024 14:48:24 +0800 |
On Fri, Jan 12, 2024 at 07:05:03AM -0800, Steve Sistare wrote:
> bool migration_in_incoming_postcopy(void)
> diff --git a/ui/spice-core.c b/ui/spice-core.c
> index b3cd229..e43a93f 100644
> --- a/ui/spice-core.c
> +++ b/ui/spice-core.c
> @@ -580,7 +580,7 @@ static int migration_state_notifier(NotifierWithReturn
> *notifier,
> if (migration_in_setup(s)) {
> spice_server_migrate_start(spice_server);
> } else if (migration_has_finished(s) ||
> - migration_in_postcopy_after_devices(s)) {
> + migration_in_postcopy_after_devices()) {
This can be a reply also to your other email: my previous suggestion of
using PRECOPY_DONE should apply here, where we can convert this chunk into:
} else if (event == MIG_EVENT_PRECOPY_DONE) {...}
Because PRECOPY_DONE should also cover the notification from
postcopy_start(), then we can drop migration_in_postcopy_after_devices()
completely, I think.
--
Peter Xu
- [PATCH V2 08/11] migration: refactor migrate_fd_connect failures, (continued)
- [PATCH V2 08/11] migration: refactor migrate_fd_connect failures, Steve Sistare, 2024/01/12
- [PATCH V2 01/11] notify: pass error to notifier with return, Steve Sistare, 2024/01/12
- [PATCH V2 10/11] vfio: register container for cpr, Steve Sistare, 2024/01/12
- [PATCH V2 02/11] migration: remove error from notifier data, Steve Sistare, 2024/01/12
- [PATCH V2 06/11] migration: MigrationNotifyFunc, Steve Sistare, 2024/01/12
- [PATCH V2 04/11] migration: remove migration_in_postcopy parameter, Steve Sistare, 2024/01/12
- Re: [PATCH V2 04/11] migration: remove migration_in_postcopy parameter,
Peter Xu <=
- [PATCH V2 11/11] vfio: allow cpr-reboot migration if suspended, Steve Sistare, 2024/01/12
- Re: [PATCH V2 11/11] vfio: allow cpr-reboot migration if suspended, Peter Xu, 2024/01/15
- Re: [PATCH V2 11/11] vfio: allow cpr-reboot migration if suspended, Steven Sistare, 2024/01/16
- Re: [PATCH V2 11/11] vfio: allow cpr-reboot migration if suspended, Steven Sistare, 2024/01/16
- Re: [PATCH V2 11/11] vfio: allow cpr-reboot migration if suspended, Peter Xu, 2024/01/17
- Re: [PATCH V2 11/11] vfio: allow cpr-reboot migration if suspended, Steven Sistare, 2024/01/17
- Re: [PATCH V2 11/11] vfio: allow cpr-reboot migration if suspended, Peter Xu, 2024/01/17
[PATCH V2 03/11] migration: convert to NotifierWithReturn, Steve Sistare, 2024/01/12