[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 05/11] migration/rdma: zore out head.repeat to make the error more
|
From: |
Juan Quintela |
|
Subject: |
[PULL 05/11] migration/rdma: zore out head.repeat to make the error more clear |
|
Date: |
Wed, 4 Oct 2023 14:40:32 +0200 |
From: Li Zhijian <lizhijian@fujitsu.com>
Previously, we got a confusion error that complains
the RDMAControlHeader.repeat:
qemu-system-x86_64: rdma: Too many requests in this message
(3638950032).Bailing.
Actually, it's caused by an unexpected RDMAControlHeader.type.
After this patch, error will become:
qemu-system-x86_64: Unknown control message QEMU FILE
Reviewed-by: Fabiano Rosas <farosas@suse.de>
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Li Zhijian <lizhijian@fujitsu.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
Message-ID: <20230926100103.201564-2-lizhijian@fujitsu.com>
---
migration/rdma.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/migration/rdma.c b/migration/rdma.c
index 7d2726d5b6..cd5e1afe60 100644
--- a/migration/rdma.c
+++ b/migration/rdma.c
@@ -2831,7 +2831,7 @@ static ssize_t qio_channel_rdma_writev(QIOChannel *ioc,
size_t remaining = iov[i].iov_len;
uint8_t * data = (void *)iov[i].iov_base;
while (remaining) {
- RDMAControlHeader head;
+ RDMAControlHeader head = {};
len = MIN(remaining, RDMA_SEND_INCREMENT);
remaining -= len;
--
2.41.0
- [PULL 00/11] Migration 20231004 patches, Juan Quintela, 2023/10/04
- [PULL 02/11] migration: Update error description outside migration.c, Juan Quintela, 2023/10/04
- [PULL 01/11] migration/vmstate: Introduce vmstate_save_state_with_err, Juan Quintela, 2023/10/04
- [PULL 05/11] migration/rdma: zore out head.repeat to make the error more clear,
Juan Quintela <=
- [PULL 04/11] migration: Add co-maintainers for migration, Juan Quintela, 2023/10/04
- [PULL 10/11] migration: file URI offset, Juan Quintela, 2023/10/04
- [PULL 08/11] s390x/a-b-bios: zero the first byte of each page on start, Juan Quintela, 2023/10/04
- [PULL 06/11] i386/a-b-bootblock: factor test memory addresses out into constants, Juan Quintela, 2023/10/04
- [PULL 03/11] MAINTAINERS: Add entry for rdma migration, Juan Quintela, 2023/10/04
- [PULL 09/11] migration: file URI, Juan Quintela, 2023/10/04