ping Re: [PATCH v4 0/8] dirty-bitmap: rewrite bdrv_dirty_iter_next_area
A message that is not in the archive (sent off-list or not yet received): [email protected]
ping
Quoted 64 lines · Vladimir Sementsov-Ogievskiy
Hi all.
1.
bdrv_dirty_iter_next_areadon't usehbitmap_next_zeroand uses inefficient loop instead. Let's improve it.2.
bdrv_dirty_iter_next_areadon't handle unaligned offset andmax_offsetcorrectly. I'm not sure that it is a real bug. But if it is, we need these series in 3.0.Details are in 05 commit message.
Note: "[PATCH] nbd/server: fix bitmap export" should be applied first:
Based-on: <[email protected]>v4:
Rework: switch interface to start,count / offset,bytes style. Fix wrong handling of the case when requested region end exceeds overall bitmap end.
Some other changes.06-08: add John's r-b.
v3:
01: - change interface to start/end, and -1 as special end-marker instead of 0
- "not found" for invalid regions instead of assert
02: rebase on 01 changes
03: - fix mistake inhbitmap_iter_initarguments (mistake in
hbitmap_next_zeroarguments is fixed automatically due to 01 changes)
04: newv2:
01: - improve comment
- s/bytes/count/
- fix forgotten function call in test
- introduceorig_sizefield here for HBitmap,
make checking inhbitmap_next_zeromore effective and safe
02: new
03: -orig_sizealready introduced in 01
- fixhbitmap_next_dirty_areato not return value less than offset on unaligned requestsVladimir Sementsov-Ogievskiy (8):
dirty-bitmap: improvebdrv_dirty_bitmap_next_zero
tests: add tests forhbitmap_next_zerowith specified end parameter
dirty-bitmap: addbdrv_dirty_bitmap_next_dirty_area
tests: add tests forhbitmap_next_dirty_areablock/mirror: fix and improvedo_sync_target_writeRevert "block/dirty-bitmap: Addbdrv_dirty_iter_next_area" Revert "test-hbitmap: Add non-advancingiter_nexttests" Revert "hbitmap: Add @advance param tohbitmap_iter_next()"include/block/dirty-bitmap.h | 7 +- include/qemu/hbitmap.h | 31 ++++-- block/backup.c | 5 +- block/dirty-bitmap.c | 68 ++------------ block/mirror.c | 17 ++-- nbd/server.c | 2 +- tests/test-hbitmap.c | 177 +++++++++++++++++++++++++++++------ util/hbitmap.c | 76 ++++++++++++--- 8 files changed, 262 insertions(+), 121 deletions(-)
Signature · 2 lines
Best regards, Vladimir
[Qemu-devel] ping2 Re: [PATCH v4 0/8] dirty-bitmap: rewrite bdrv_dirty_iter_next_area
In reply to a message not in the archiveping. No dependencies, apply to master.
Quoted 64 lines · Vladimir Sementsov-Ogievskiy
Hi all.
1.
bdrv_dirty_iter_next_areadon't usehbitmap_next_zeroand uses inefficient loop instead. Let's improve it.2.
bdrv_dirty_iter_next_areadon't handle unaligned offset andmax_offsetcorrectly. I'm not sure that it is a real bug. But if it is, we need these series in 3.0.Details are in 05 commit message.
Note: "[PATCH] nbd/server: fix bitmap export" should be applied first:
Based-on: <[email protected]>v4:
Rework: switch interface to start,count / offset,bytes style. Fix wrong handling of the case when requested region end exceeds overall bitmap end.
Some other changes.06-08: add John's r-b.
v3:
01: - change interface to start/end, and -1 as special end-marker instead of 0
- "not found" for invalid regions instead of assert
02: rebase on 01 changes
03: - fix mistake inhbitmap_iter_initarguments (mistake in
hbitmap_next_zeroarguments is fixed automatically due to 01 changes)
04: newv2:
01: - improve comment
- s/bytes/count/
- fix forgotten function call in test
- introduceorig_sizefield here for HBitmap,
make checking inhbitmap_next_zeromore effective and safe
02: new
03: -orig_sizealready introduced in 01
- fixhbitmap_next_dirty_areato not return value less than offset on unaligned requestsVladimir Sementsov-Ogievskiy (8):
dirty-bitmap: improvebdrv_dirty_bitmap_next_zero
tests: add tests forhbitmap_next_zerowith specified end parameter
dirty-bitmap: addbdrv_dirty_bitmap_next_dirty_area
tests: add tests forhbitmap_next_dirty_areablock/mirror: fix and improvedo_sync_target_writeRevert "block/dirty-bitmap: Addbdrv_dirty_iter_next_area" Revert "test-hbitmap: Add non-advancingiter_nexttests" Revert "hbitmap: Add @advance param tohbitmap_iter_next()"include/block/dirty-bitmap.h | 7 +- include/qemu/hbitmap.h | 31 ++++-- block/backup.c | 5 +- block/dirty-bitmap.c | 68 ++------------ block/mirror.c | 17 ++-- nbd/server.c | 2 +- tests/test-hbitmap.c | 177 +++++++++++++++++++++++++++++------ util/hbitmap.c | 76 ++++++++++++--- 8 files changed, 262 insertions(+), 121 deletions(-)
Signature · 2 lines
Best regards, Vladimir
Re: [Qemu-devel] ping2 Re: [PATCH v4 0/8] dirty-bitmap: rewrite bdrv_dirty_iter_next_area
Quoted 2 lines · Vladimir Sementsov-Ogievskiy
ping. No dependencies, apply to master.
Sure thing.
Staged to jsnow/bitmaps.
--js
Quoted 67 lines
Quoted 64 lines · Vladimir Sementsov-Ogievskiy
Hi all.
1.
bdrv_dirty_iter_next_areadon't usehbitmap_next_zeroand uses inefficient loop instead. Let's improve it.2.
bdrv_dirty_iter_next_areadon't handle unaligned offset andmax_offsetcorrectly. I'm not sure that it is a real bug. But if it is, we need these series in 3.0.Details are in 05 commit message.
Note: "[PATCH] nbd/server: fix bitmap export" should be applied first:
Based-on: <[email protected]>v4:
Rework: switch interface to start,count / offset,bytes style. Fix wrong handling of the case when requested region end exceeds overall bitmap end.
Some other changes.06-08: add John's r-b.
v3:
01: - change interface to start/end, and -1 as special end-marker instead of 0
- "not found" for invalid regions instead of assert
02: rebase on 01 changes
03: - fix mistake inhbitmap_iter_initarguments (mistake in
hbitmap_next_zeroarguments is fixed automatically due to 01 changes)
04: newv2:
01: - improve comment
- s/bytes/count/
- fix forgotten function call in test
- introduceorig_sizefield here for HBitmap,
make checking inhbitmap_next_zeromore effective and safe
02: new
03: -orig_sizealready introduced in 01
- fixhbitmap_next_dirty_areato not return value less than offset on unaligned requestsVladimir Sementsov-Ogievskiy (8):
dirty-bitmap: improvebdrv_dirty_bitmap_next_zero
tests: add tests forhbitmap_next_zerowith specified end parameter
dirty-bitmap: addbdrv_dirty_bitmap_next_dirty_area
tests: add tests forhbitmap_next_dirty_areablock/mirror: fix and improvedo_sync_target_writeRevert "block/dirty-bitmap: Addbdrv_dirty_iter_next_area" Revert "test-hbitmap: Add non-advancingiter_nexttests" Revert "hbitmap: Add @advance param tohbitmap_iter_next()"include/block/dirty-bitmap.h | 7 +- include/qemu/hbitmap.h | 31 ++++-- block/backup.c | 5 +- block/dirty-bitmap.c | 68 ++------------ block/mirror.c | 17 ++-- nbd/server.c | 2 +- tests/test-hbitmap.c | 177 +++++++++++++++++++++++++++++------ util/hbitmap.c | 76 ++++++++++++--- 8 files changed, 262 insertions(+), 121 deletions(-)
Signature · 1 line
—js
Re: [Qemu-devel] ping2 Re: [PATCH v4 0/8] dirty-bitmap: rewrite bdrv_dirty_iter_next_area
Quoted 9 lines · John Snow
Quoted 2 lines · Vladimir Sementsov-Ogievskiy
ping. No dependencies, apply to master.
Sure thing.
Staged to jsnow/bitmaps.
Thank you!
Oops, I've missed your email about s/firt_dirty_off/first_dirty_off
I can resend, or you can fix in your branch, as you prefer. The variable touches two commits in jsnow/bitmaps:
commit f235204c39dd5ce122666d87f18005264eb56e51
Author: Vladimir Sementsov-Ogievskiy <[email protected]> Date: Mon Sep 17 17:57:27 2018 +0300
dirty-bitmap: add bdrv_dirty_bitmap_next_dirty_area
and the last one:
commit 7f73174ca1c8a92e4a5139b35f2a2273f59ce29b (jnsnow/bitmaps)
Author: Vladimir Sementsov-Ogievskiy <[email protected]> Date: Mon Sep 17 17:57:32 2018 +0300
Revert "hbitmap: Add @advance param to hbitmap_iter_next()"
Quoted 71 lines
--js
Quoted 67 lines
Quoted 64 lines · Vladimir Sementsov-Ogievskiy
Hi all.
1.
bdrv_dirty_iter_next_areadon't usehbitmap_next_zeroand uses inefficient loop instead. Let's improve it.2.
bdrv_dirty_iter_next_areadon't handle unaligned offset andmax_offsetcorrectly. I'm not sure that it is a real bug. But if it is, we need these series in 3.0.Details are in 05 commit message.
Note: "[PATCH] nbd/server: fix bitmap export" should be applied first:
Based-on: <[email protected]>v4:
Rework: switch interface to start,count / offset,bytes style. Fix wrong handling of the case when requested region end exceeds overall bitmap end.
Some other changes.06-08: add John's r-b.
v3:
01: - change interface to start/end, and -1 as special end-marker instead of 0
- "not found" for invalid regions instead of assert
02: rebase on 01 changes
03: - fix mistake inhbitmap_iter_initarguments (mistake in
hbitmap_next_zeroarguments is fixed automatically due to 01 changes)
04: newv2:
01: - improve comment
- s/bytes/count/
- fix forgotten function call in test
- introduceorig_sizefield here for HBitmap, make checking inhbitmap_next_zeromore effective and safe
02: new
03: -orig_sizealready introduced in 01
- fixhbitmap_next_dirty_areato not return value less than offset on unaligned requestsVladimir Sementsov-Ogievskiy (8):
dirty-bitmap: improvebdrv_dirty_bitmap_next_zero
tests: add tests forhbitmap_next_zerowith specified end parameter
dirty-bitmap: addbdrv_dirty_bitmap_next_dirty_area
tests: add tests forhbitmap_next_dirty_areablock/mirror: fix and improvedo_sync_target_writeRevert "block/dirty-bitmap: Addbdrv_dirty_iter_next_area" Revert "test-hbitmap: Add non-advancingiter_nexttests" Revert "hbitmap: Add @advance param tohbitmap_iter_next()"include/block/dirty-bitmap.h | 7 +- include/qemu/hbitmap.h | 31 ++++-- block/backup.c | 5 +- block/dirty-bitmap.c | 68 ++------------ block/mirror.c | 17 ++-- nbd/server.c | 2 +- tests/test-hbitmap.c | 177 +++++++++++++++++++++++++++++------ util/hbitmap.c | 76 ++++++++++++--- 8 files changed, 262 insertions(+), 121 deletions(-)
Signature · 2 lines
Best regards, Vladimir
Re: [Qemu-devel] ping2 Re: [PATCH v4 0/8] dirty-bitmap: rewrite bdrv_dirty_iter_next_area
Quoted 12 lines · Vladimir Sementsov-Ogievskiy
Quoted 9 lines · John Snow
Quoted 2 lines · Vladimir Sementsov-Ogievskiy
ping. No dependencies, apply to master.
Sure thing.
Staged to jsnow/bitmaps.
Quoted 7 lines
Thank you!
Oops, I've missed your email about s/firt_dirty_off/first_dirty_off
I can resend, or you can fix in your branch, as you prefer. The variable touches two commits in jsnow/bitmaps:
Whoops, I forgot too. I just remember that I was waiting on a requisite and it got lost so I was in a hurry to stage it for you. I'll just squash any fixes in.
I'll try to send the PR when the qemu-img bitmap info patch is ready, alongside my series to drop the x-prefix (and adjust the merge API.)
Anything else urgent for the start of the 4.0 window before we all disappear on holiday break?
--js
Quoted 17 lines
commit
f235204c39dd5ce122666d87f18005264eb56e51Author: Vladimir Sementsov-Ogievskiy <[email protected]> Date: Mon Sep 17 17:57:27 2018 +0300dirty-bitmap: add
bdrv_dirty_bitmap_next_dirty_areaand the last one:
commit
7f73174ca1c8a92e4a5139b35f2a2273f59ce29b(jnsnow/bitmaps)Author: Vladimir Sementsov-Ogievskiy <[email protected]> Date: Mon Sep 17 17:57:32 2018 +0300Revert "hbitmap: Add @advance param to
hbitmap_iter_next()"
Re: [Qemu-devel] ping2 Re: [PATCH v4 0/8] dirty-bitmap: rewrite bdrv_dirty_iter_next_area
Quoted 22 lines · John Snow
Quoted 7 lines · Vladimir Sementsov-Ogievskiy
Quoted 6 lines · John Snow
Quoted 2 lines · Vladimir Sementsov-Ogievskiy
ping. No dependencies, apply to master.
Sure thing.
Quoted 9 lines
Quoted 1 line
Staged to jsnow/bitmaps.
Thank you!
Oops, I've missed your email about s/firt_dirty_off/first_dirty_off
I can resend, or you can fix in your branch, as you prefer. The variable touches two commits in jsnow/bitmaps:
Whoops, I forgot too. I just remember that I was waiting on a requisite and it got lost so I was in a hurry to stage it for you. I'll just squash any fixes in.
Quoted 7 lines
I'll try to send the PR when the qemu-img bitmap info patch is ready, alongside my series to drop the x-prefix (and adjust the merge API.)
Anything else urgent for the start of the 4.0 window before we all disappear on holiday break?
--js
JFYI: Holidays in Russia are AFTER New Year, not before :) We will be on vacations from 01 till 08.
Den