qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v8 07/11] migration: add bitmap for copied page


From: Alexey Perevalov
Subject: Re: [Qemu-devel] [PATCH v8 07/11] migration: add bitmap for copied page
Date: Wed, 07 Jun 2017 17:46:01 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1

On 06/07/2017 03:56 PM, Juan Quintela wrote:
Alexey Perevalov <address@hidden> wrote:

+static unsigned long get_copiedmap_size(RAMBlock *rb)
+{
+    unsigned long pages;
+    pages = rb->max_length >> find_first_bit((unsigned long *)&rb->page_size,
+                                             sizeof(rb->page_size));
+    return pages;
Are you sure that you want this and not:

pages = rb->max_length >> TARGET_PAGE_BITS?
I just wish to optimize size of bitmap,

Otherwise, in some architectures/configurations you can end with a
bitmap size that is different of the migration bitmap size.

looks like, yes, that solution is for le only, so I feel luck
of converting to le, here.




--
Best regards,
Alexey Perevalov



reply via email to

[Prev in Thread] Current Thread [Next in Thread]