Re: [Qemu-block] [PATCH v2 09/18] block/dirty-bitmap: add bdrv_dirty_bitmap_merge_internal

2019-07-08 Thread John Snow
On 7/8/19 2:33 PM, Max Reitz wrote: > On 08.07.19 20:24, John Snow wrote: >> >> >> On 7/8/19 7:44 AM, Max Reitz wrote: >>> On 05.07.19 18:45, John Snow wrote: On 7/4/19 12:49 PM, Max Reitz wrote: > On 03.07.19 23:55, John Snow wrote: >>> >>> [...] >>> >> + >> +/**

Re: [Qemu-block] [PATCH v2 09/18] block/dirty-bitmap: add bdrv_dirty_bitmap_merge_internal

2019-07-08 Thread Max Reitz
On 08.07.19 20:24, John Snow wrote: > > > On 7/8/19 7:44 AM, Max Reitz wrote: >> On 05.07.19 18:45, John Snow wrote: >>> >>> >>> On 7/4/19 12:49 PM, Max Reitz wrote: On 03.07.19 23:55, John Snow wrote: >> >> [...] >> > + > +/** > + * bdrv_dirty_bitmap_merge_internal: merge src in

Re: [Qemu-block] [PATCH v2 09/18] block/dirty-bitmap: add bdrv_dirty_bitmap_merge_internal

2019-07-08 Thread John Snow
On 7/8/19 7:44 AM, Max Reitz wrote: > On 05.07.19 18:45, John Snow wrote: >> >> >> On 7/4/19 12:49 PM, Max Reitz wrote: >>> On 03.07.19 23:55, John Snow wrote: > > [...] > + +/** + * bdrv_dirty_bitmap_merge_internal: merge src into dest. + * Does NOT check bitmap permission

Re: [Qemu-block] [PATCH v2 09/18] block/dirty-bitmap: add bdrv_dirty_bitmap_merge_internal

2019-07-08 Thread Max Reitz
On 05.07.19 18:45, John Snow wrote: > > > On 7/4/19 12:49 PM, Max Reitz wrote: >> On 03.07.19 23:55, John Snow wrote: [...] >>> + >>> +/** >>> + * bdrv_dirty_bitmap_merge_internal: merge src into dest. >>> + * Does NOT check bitmap permissions; not suitable for use as public API. >>> + * >>> +

Re: [Qemu-block] [PATCH v2 09/18] block/dirty-bitmap: add bdrv_dirty_bitmap_merge_internal

2019-07-05 Thread John Snow
On 7/4/19 12:49 PM, Max Reitz wrote: > On 03.07.19 23:55, John Snow wrote: >> I'm surprised it didn't come up sooner, but sometimes we have a +busy >> bitmap as a source. This is dangerous from the QMP API, but if we are >> the owner that marked the bitmap busy, it's safe to merge it using it as

Re: [Qemu-block] [PATCH v2 09/18] block/dirty-bitmap: add bdrv_dirty_bitmap_merge_internal

2019-07-04 Thread Max Reitz
On 03.07.19 23:55, John Snow wrote: > I'm surprised it didn't come up sooner, but sometimes we have a +busy > bitmap as a source. This is dangerous from the QMP API, but if we are > the owner that marked the bitmap busy, it's safe to merge it using it as > a read only source. > > It is not safe in

[Qemu-block] [PATCH v2 09/18] block/dirty-bitmap: add bdrv_dirty_bitmap_merge_internal

2019-07-03 Thread John Snow
I'm surprised it didn't come up sooner, but sometimes we have a +busy bitmap as a source. This is dangerous from the QMP API, but if we are the owner that marked the bitmap busy, it's safe to merge it using it as a read only source. It is not safe in the general case to allow users to read from in