[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v4 2/9] migration: Implement switchover ack logic
|
From: |
Peter Xu |
|
Subject: |
Re: [PATCH v4 2/9] migration: Implement switchover ack logic |
|
Date: |
Mon, 29 May 2023 11:01:38 -0400 |
On Sun, May 28, 2023 at 05:06:45PM +0300, Avihai Horon wrote:
> Implement switchover ack logic. This prevents the source from stopping
> the VM and completing the migration until an ACK is received from the
> destination that it's OK to do so.
>
> To achieve this, a new SaveVMHandlers handler switchover_ack_needed()
> and a new return path message MIG_RP_MSG_SWITCHOVER_ACK are added.
>
> The switchover_ack_needed() handler is called during migration setup in
> the destination to check if switchover ack is used by the migrated
> device.
>
> When switchover is approved by all migrated devices in the destination
> that support this capability, the MIG_RP_MSG_SWITCHOVER_ACK return path
> message is sent to the source to notify it that it's OK to do
> switchover.
>
> Signed-off-by: Avihai Horon <avihaih@nvidia.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
--
Peter Xu
- [PATCH v4 0/9] migration: Add switchover ack capability and VFIO precopy support, Avihai Horon, 2023/05/28
- [PATCH v4 1/9] migration: Add switchover ack capability, Avihai Horon, 2023/05/28
- [PATCH v4 2/9] migration: Implement switchover ack logic, Avihai Horon, 2023/05/28
- Re: [PATCH v4 2/9] migration: Implement switchover ack logic,
Peter Xu <=
- [PATCH v4 4/9] tests: Add migration switchover ack capability test, Avihai Horon, 2023/05/28
- [PATCH v4 3/9] migration: Enable switchover ack capability, Avihai Horon, 2023/05/28
- [PATCH v4 5/9] vfio/migration: Refactor vfio_save_block() to return saved data size, Avihai Horon, 2023/05/28
- [PATCH v4 6/9] vfio/migration: Store VFIO migration flags in VFIOMigration, Avihai Horon, 2023/05/28
- [PATCH v4 7/9] vfio/migration: Add VFIO migration pre-copy support, Avihai Horon, 2023/05/28