[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH 3/8] migration: Add precopy initial data loaded ACK functiona
|
From: |
Juan Quintela |
|
Subject: |
Re: [PATCH 3/8] migration: Add precopy initial data loaded ACK functionality |
|
Date: |
Wed, 10 May 2023 17:59:18 +0200 |
|
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux) |
Avihai Horon <avihaih@nvidia.com> wrote:
> On 10/05/2023 11:54, Juan Quintela wrote:
>> External email: Use caution opening links or attachments
>>
>>> +static bool initial_data_loaded_acked(MigrationState *s)
>>> +{
>>> + if (!migrate_precopy_initial_data()) {
>>> + return true;
>>> + }
>>> +
>>> + /* No reason to wait for precopy initial data loaded ACK if VM is
>>> stopped */
>>> + if (!runstate_is_running()) {
>>> + return true;
>>> + }
>> Thinking loud here.
>>
>> What happens if we start a migration. Guest is running.
>> We enable precopy_initial_data().
>>
>> And then we stop the guest.
>>
>> Are we going to receive data that expect this return false? Or it is
>> handled somewhere else?
>
> Not sure I fully understand what you mean here, could you elaborate?
>
static bool initial_data_loaded_acked(MigrationState *s)
{
if (!migrate_precopy_initial_data()) {
return true;
}
/* No reason to wait for precopy initial data loaded ACK if VM is stopped */
if (!runstate_is_running()) {
return true;
}
return s->initial_data_loaded_acked;
****** here we are only returning a value. I mis-read we were
calling a function. Sorry for the noise.
Later, Juan.
- Re: [PATCH 2/8] migration: Add precopy initial data handshake, (continued)
- [PATCH 5/8] tests: Add migration precopy initial data capability test, Avihai Horon, 2023/05/01
- [PATCH 6/8] vfio/migration: Refactor vfio_save_block() to return saved data size, Avihai Horon, 2023/05/01
- [PATCH 4/8] migration: Enable precopy initial data capability, Avihai Horon, 2023/05/01
- [PATCH 7/8] vfio/migration: Add VFIO migration pre-copy support, Avihai Horon, 2023/05/01
- [PATCH 8/8] vfio/migration: Add support for precopy initial data capability, Avihai Horon, 2023/05/01
- Re: [PATCH 0/8] migration: Add precopy initial data capability and VFIO precopy support, Peter Xu, 2023/05/02