|
| From: | Juan Quintela |
| Subject: | Re: [Qemu-devel] [PATCH v8 07/11] migration: add bitmap for copied page |
| Date: | Wed, 07 Jun 2017 14:56:55 +0200 |
| User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
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?
Otherwise, in some architectures/configurations you can end with a
bitmap size that is different of the migration bitmap size.
| [Prev in Thread] | Current Thread | [Next in Thread] |