Re: [Qemu-devel] [PATCH 1/3] migration/postcopy: the valid condition is one less then end

2019-06-28 Thread Wei Yang
On Fri, Jun 28, 2019 at 04:09:50PM +0100, Dr. David Alan Gilbert wrote: >* Wei Yang (richardw.y...@linux.intel.com) wrote: >> If one equals end, it means we have gone through the whole bitmap. >> >> Use a more restrict check to skip a unnecessary condition. >> >> Signed-off-by: Wei Yang > >Yes,

Re: [Qemu-devel] [PATCH 1/3] migration/postcopy: the valid condition is one less then end

2019-06-28 Thread Dr. David Alan Gilbert
* Wei Yang (richardw.y...@linux.intel.com) wrote: > If one equals end, it means we have gone through the whole bitmap. > > Use a more restrict check to skip a unnecessary condition. > > Signed-off-by: Wei Yang Yes, I don't think that'll break, since I think the find_next_zero_bit will also

[Qemu-devel] [PATCH 1/3] migration/postcopy: the valid condition is one less then end

2019-06-26 Thread Wei Yang
If one equals end, it means we have gone through the whole bitmap. Use a more restrict check to skip a unnecessary condition. Signed-off-by: Wei Yang --- migration/ram.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/migration/ram.c b/migration/ram.c index