<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/block/dirty-bitmap.c, branch spice_video_codecs</title>
<subtitle>Experimental fork of QEMU with video encoding patches</subtitle>
<id>https://git.openslx.org/bwlp/qemu.git/atom/block/dirty-bitmap.c?h=spice_video_codecs</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/block/dirty-bitmap.c?h=spice_video_codecs'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2022-06-24T15:07:06+00:00</updated>
<entry>
<title>block: simplify handling of try to merge different sized bitmaps</title>
<updated>2022-06-24T15:07:06+00:00</updated>
<author>
<name>Vladimir Sementsov-Ogievskiy</name>
</author>
<published>2022-05-17T11:12:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=618af89e559daf897cc5013d3476a9c41ee76e00'/>
<id>urn:sha1:618af89e559daf897cc5013d3476a9c41ee76e00</id>
<content type='text'>
We have too much logic to simply check that bitmaps are of the same
size. Let's just define that hbitmap_merge() and
bdrv_dirty_bitmap_merge_internal() require their argument bitmaps be of
same size, this simplifies things.

Let's look through the callers:

For backup_init_bcs_bitmap() we already assert that merge can't fail.

In bdrv_reclaim_dirty_bitmap_locked() we gracefully handle the error
that can't happen: successor always has same size as its parent, drop
this logic.

In bdrv_merge_dirty_bitmap() we already has assertion and separate
check. Make the check explicit and improve error message.

Signed-off-by: Vladimir Sementsov-Ogievskiy &lt;v.sementsov-og@mail.ru&gt;
Reviewed-by: Nikita Lapshin &lt;nikita.lapshin@virtuozzo.com&gt;
Reviewed-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
Message-Id: &lt;20220517111206.23585-4-v.sementsov-og@mail.ru&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>block/dirty-bitmap: introduce bdrv_dirty_bitmap_status()</title>
<updated>2022-03-07T08:33:30+00:00</updated>
<author>
<name>Vladimir Sementsov-Ogievskiy</name>
</author>
<published>2022-03-03T19:43:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=a6426475a75fb793d4c9dd9fe94815e8d18ddaa1'/>
<id>urn:sha1:a6426475a75fb793d4c9dd9fe94815e8d18ddaa1</id>
<content type='text'>
Add a convenient function similar with bdrv_block_status() to get
status of dirty bitmap.

Signed-off-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@virtuozzo.com&gt;
Reviewed-by: Hanna Reitz &lt;hreitz@redhat.com&gt;
Message-Id: &lt;20220303194349.2304213-9-vsementsov@virtuozzo.com&gt;
Signed-off-by: Hanna Reitz &lt;hreitz@redhat.com&gt;
</content>
</entry>
<entry>
<title>block/dirty-bitmap: bdrv_merge_dirty_bitmap(): add return value</title>
<updated>2022-03-07T08:33:30+00:00</updated>
<author>
<name>Vladimir Sementsov-Ogievskiy</name>
</author>
<published>2022-03-03T19:43:35+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=34ffacb7f4e781873ffdee54c7bb800fa1853a92'/>
<id>urn:sha1:34ffacb7f4e781873ffdee54c7bb800fa1853a92</id>
<content type='text'>
That simplifies handling failure in existing code and in further new
usage of bdrv_merge_dirty_bitmap().

Signed-off-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@virtuozzo.com&gt;
Reviewed-by: Hanna Reitz &lt;hreitz@redhat.com&gt;
Message-Id: &lt;20220303194349.2304213-3-vsementsov@virtuozzo.com&gt;
Signed-off-by: Hanna Reitz &lt;hreitz@redhat.com&gt;
</content>
</entry>
<entry>
<title>IO_CODE and IO_OR_GS_CODE for block_int I/O API</title>
<updated>2022-03-04T17:18:25+00:00</updated>
<author>
<name>Emanuele Giuseppe Esposito</name>
</author>
<published>2022-03-03T15:15:58+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=967d7905d1b568355c5422d595dd1e3a057c43f6'/>
<id>urn:sha1:967d7905d1b568355c5422d595dd1e3a057c43f6</id>
<content type='text'>
Mark all I/O functions with IO_CODE, and all "I/O OR GS" with
IO_OR_GS_CODE.

Signed-off-by: Emanuele Giuseppe Esposito &lt;eesposit@redhat.com&gt;
Message-Id: &lt;20220303151616.325444-14-eesposit@redhat.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>assertions for block_int global state API</title>
<updated>2022-03-04T17:18:25+00:00</updated>
<author>
<name>Emanuele Giuseppe Esposito</name>
</author>
<published>2022-03-03T15:15:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=b4ad82aab10ea0cfe981e94414751e26a510c280'/>
<id>urn:sha1:b4ad82aab10ea0cfe981e94414751e26a510c280</id>
<content type='text'>
Signed-off-by: Emanuele Giuseppe Esposito &lt;eesposit@redhat.com&gt;
Message-Id: &lt;20220303151616.325444-13-eesposit@redhat.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>IO_CODE and IO_OR_GS_CODE for block I/O API</title>
<updated>2022-03-04T17:18:25+00:00</updated>
<author>
<name>Emanuele Giuseppe Esposito</name>
</author>
<published>2022-03-03T15:15:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=384a48fb7423dfb303023eb504e1fc5e6acb4de4'/>
<id>urn:sha1:384a48fb7423dfb303023eb504e1fc5e6acb4de4</id>
<content type='text'>
Mark all I/O functions with IO_CODE, and all "I/O OR GS" with
IO_OR_GS_CODE.

Signed-off-by: Emanuele Giuseppe Esposito &lt;eesposit@redhat.com&gt;
Message-Id: &lt;20220303151616.325444-6-eesposit@redhat.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>iotests: Improve and rename test 291 to qemu-img-bitmap</title>
<updated>2021-07-21T19:14:41+00:00</updated>
<author>
<name>Eric Blake</name>
</author>
<published>2021-07-09T15:39:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=94075c28eea0755173939dfaf1eae688b224a74e'/>
<id>urn:sha1:94075c28eea0755173939dfaf1eae688b224a74e</id>
<content type='text'>
Enhance the test to demonstrate existing less-than-stellar behavior of
qemu-img with a qcow2 image containing an inconsistent bitmap: we
don't diagnose the problem until after copying the entire image (a
potentially long time), and when we do diagnose the failure, we still
end up leaving an empty bitmap in the destination.  This mess will be
cleaned up in the next patch.

While at it, rename the test now that we support useful iotest names,
and fix a missing newline in the error message thus exposed.

Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
Message-Id: &lt;20210709153951.2801666-2-eblake@redhat.com&gt;
Reviewed-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@virtuozzo.com&gt;
Reviewed-by: Nir Soffer &lt;nsoffer@redhat.com&gt;
</content>
</entry>
<entry>
<title>block: remove dirty bitmaps 'status' field</title>
<updated>2021-03-18T09:22:55+00:00</updated>
<author>
<name>Daniel P. Berrangé</name>
</author>
<published>2021-02-19T19:19:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=81cbfd5088690c53541ffd0d74851c8ab055a829'/>
<id>urn:sha1:81cbfd5088690c53541ffd0d74851c8ab055a829</id>
<content type='text'>
The same information is available via the 'recording' and 'busy' fields.

Reviewed-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@virtuozzo.com&gt;
Signed-off-by: Daniel P. Berrangé &lt;berrange@redhat.com&gt;
</content>
</entry>
<entry>
<title>qcow2-bitmap: make bytes_covered_by_bitmap_cluster() public</title>
<updated>2021-03-08T13:56:54+00:00</updated>
<author>
<name>Vladimir Sementsov-Ogievskiy</name>
</author>
<published>2021-02-24T10:47:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=35f428ba39718711177036ddf112e9299e7f20b2'/>
<id>urn:sha1:35f428ba39718711177036ddf112e9299e7f20b2</id>
<content type='text'>
Rename bytes_covered_by_bitmap_cluster() to
bdrv_dirty_bitmap_serialization_coverage() and make it public.
It is needed as we are going to share it with bitmap loading in
parallels format.

Signed-off-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@virtuozzo.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Reviewed-by: Denis V. Lunev &lt;den@openvz.org&gt;
Message-Id: &lt;20210224104707.88430-2-vsementsov@virtuozzo.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>qapi: Use QAPI_LIST_APPEND in trivial cases</title>
<updated>2021-01-28T07:08:45+00:00</updated>
<author>
<name>Eric Blake</name>
</author>
<published>2021-01-13T22:10:12+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=c3033fd372fdaf5b89190136a74b3d78880b85d6'/>
<id>urn:sha1:c3033fd372fdaf5b89190136a74b3d78880b85d6</id>
<content type='text'>
The easiest spots to use QAPI_LIST_APPEND are where we already have an
obvious pointer to the tail of a list.  While at it, consistently use
the variable name 'tail' for that purpose.

Signed-off-by: Eric Blake &lt;eblake@redhat.com&gt;
Reviewed-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@virtuozzo.com&gt;
Reviewed-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Message-Id: &lt;20210113221013.390592-5-eblake@redhat.com&gt;
Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
</content>
</entry>
</feed>
