[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
- [Qemu-devel] [PATCH v8 09/11] migration: calculate vCPU blocktime on dst side, (continued)
- Message not available
- [Qemu-devel] [PATCH v8 02/11] migration: pass MigrationIncomingState* into migration check functions, Alexey Perevalov, 2017/06/07
- Re: [Qemu-devel] [PATCH v8 02/11] migration: pass MigrationIncomingState* into migration check functions, Peter Xu, 2017/06/09
- Re: [Qemu-devel] [PATCH v8 02/11] migration: pass MigrationIncomingState* into migration check functions, Alexey Perevalov, 2017/06/09
- Re: [Qemu-devel] [PATCH v8 02/11] migration: pass MigrationIncomingState* into migration check functions, Peter Xu, 2017/06/09
- Re: [Qemu-devel] [PATCH v8 02/11] migration: pass MigrationIncomingState* into migration check functions, Alexey Perevalov, 2017/06/09
Message not available
Re: [Qemu-devel] [PATCH v8 07/11] migration: add bitmap for copied page, Alexey Perevalov, 2017/06/07
Re: [Qemu-devel] [PATCH v8 07/11] migration: add bitmap for copied page, Peter Xu, 2017/06/09
Re: [Qemu-devel] [PATCH v8 07/11] migration: add bitmap for copied page, Alexey Perevalov, 2017/06/09
Re: [Qemu-devel] [PATCH v8 07/11] migration: add bitmap for copied page, Dr. David Alan Gilbert, 2017/06/12
Re: [Qemu-devel] [PATCH v8 07/11] migration: add bitmap for copied page, Peter Xu, 2017/06/13
Re: [Qemu-devel] [PATCH v8 07/11] migration: add bitmap for copied page, Alexey Perevalov, 2017/06/13
Re: [Qemu-devel] [PATCH v8 07/11] migration: add bitmap for copied page, Peter Xu, 2017/06/13
Message not available
Message not available