[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v1 03/13] migration/multifd: Zero p->flags before starting fillin
From: |
Maciej S. Szmigiero |
Subject: |
[PATCH v1 03/13] migration/multifd: Zero p->flags before starting filling a packet |
Date: |
Tue, 18 Jun 2024 18:12:21 +0200 |
From: "Maciej S. Szmigiero" <maciej.szmigiero@oracle.com>
This way there aren't stale flags there.
p->flags can't contain SYNC to be sent at the next RAM packet since syncs
are now handled separately in multifd_send_thread.
Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
---
migration/multifd.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/migration/multifd.c b/migration/multifd.c
index f317bff07746..c8a5b363f7d4 100644
--- a/migration/multifd.c
+++ b/migration/multifd.c
@@ -933,6 +933,7 @@ static void *multifd_send_thread(void *opaque)
if (qatomic_load_acquire(&p->pending_job)) {
MultiFDPages_t *pages = p->pages;
+ p->flags = 0;
p->iovs_num = 0;
assert(pages->num);
@@ -986,7 +987,6 @@ static void *multifd_send_thread(void *opaque)
}
/* p->next_packet_size will always be zero for a SYNC packet */
stat64_add(&mig_stats.multifd_bytes, p->packet_len);
- p->flags = 0;
}
qatomic_set(&p->pending_sync, false);
- [PATCH v1 00/13] Multifd 🔀 device state transfer support with VFIO consumer, Maciej S. Szmigiero, 2024/06/18
- [PATCH v1 01/13] vfio/migration: Add save_{iterate, complete_precopy}_started trace events, Maciej S. Szmigiero, 2024/06/18
- [PATCH v1 02/13] migration/ram: Add load start trace event, Maciej S. Szmigiero, 2024/06/18
- [PATCH v1 03/13] migration/multifd: Zero p->flags before starting filling a packet,
Maciej S. Szmigiero <=
- [PATCH v1 04/13] migration: Add save_live_complete_precopy_{begin, end} handlers, Maciej S. Szmigiero, 2024/06/18
- [PATCH v1 06/13] migration: Add load_finish handler and associated functions, Maciej S. Szmigiero, 2024/06/18
- [PATCH v1 05/13] migration: Add qemu_loadvm_load_state_buffer() and its handler, Maciej S. Szmigiero, 2024/06/18
- [PATCH v1 07/13] migration/multifd: Device state transfer support - receive side, Maciej S. Szmigiero, 2024/06/18
- [PATCH v1 08/13] migration/multifd: Convert multifd_send_pages::next_channel to atomic, Maciej S. Szmigiero, 2024/06/18
- [PATCH v1 10/13] migration/multifd: Add migration_has_device_state_support(), Maciej S. Szmigiero, 2024/06/18
- [PATCH v1 09/13] migration/multifd: Device state transfer support - send side, Maciej S. Szmigiero, 2024/06/18
- [PATCH v1 12/13] vfio/migration: Add x-migration-multifd-transfer VFIO property, Maciej S. Szmigiero, 2024/06/18
- [PATCH v1 11/13] vfio/migration: Multifd device state transfer support - receive side, Maciej S. Szmigiero, 2024/06/18
- [PATCH v1 13/13] vfio/migration: Multifd device state transfer support - send side, Maciej S. Szmigiero, 2024/06/18