• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修訂8c0ec0b2b0622563a8620d0bf2bb60e90e18df18 (tree)
時間2022-01-28 23:38:23
作者Juan Quintela <quintela@redh...>
CommiterJuan Quintela

Log Message

multifd: Rename pages_used to normal_pages

Signed-off-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>

Change Summary

差異

--- a/migration/multifd.c
+++ b/migration/multifd.c
@@ -262,7 +262,7 @@ static void multifd_send_fill_packet(MultiFDSendParams *p)
262262
263263 packet->flags = cpu_to_be32(p->flags);
264264 packet->pages_alloc = cpu_to_be32(p->pages->allocated);
265- packet->pages_used = cpu_to_be32(p->normal_num);
265+ packet->normal_pages = cpu_to_be32(p->normal_num);
266266 packet->next_packet_size = cpu_to_be32(p->next_packet_size);
267267 packet->packet_num = cpu_to_be64(p->packet_num);
268268
@@ -316,7 +316,7 @@ static int multifd_recv_unfill_packet(MultiFDRecvParams *p, Error **errp)
316316 return -1;
317317 }
318318
319- p->normal_num = be32_to_cpu(packet->pages_used);
319+ p->normal_num = be32_to_cpu(packet->normal_pages);
320320 if (p->normal_num > packet->pages_alloc) {
321321 error_setg(errp, "multifd: received packet "
322322 "with %u pages and expected maximum pages are %u",
--- a/migration/multifd.h
+++ b/migration/multifd.h
@@ -44,7 +44,8 @@ typedef struct {
4444 uint32_t flags;
4545 /* maximum number of allocated pages */
4646 uint32_t pages_alloc;
47- uint32_t pages_used;
47+ /* non zero pages */
48+ uint32_t normal_pages;
4849 /* size of the next packet that contains pages */
4950 uint32_t next_packet_size;
5051 uint64_t packet_num;