<feed xmlns='http://www.w3.org/2005/Atom'>
<title>bwlp/qemu.git/block/qed-check.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/qed-check.c?h=spice_video_codecs</id>
<link rel='self' href='https://git.openslx.org/bwlp/qemu.git/atom/block/qed-check.c?h=spice_video_codecs'/>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/'/>
<updated>2019-04-30T13:29:00+00:00</updated>
<entry>
<title>block/qed: add missed coroutine_fn markers</title>
<updated>2019-04-30T13:29:00+00:00</updated>
<author>
<name>Vladimir Sementsov-Ogievskiy</name>
</author>
<published>2019-04-30T12:36:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=54277a2aab876aba7b55c7e88e2b372691849741'/>
<id>urn:sha1:54277a2aab876aba7b55c7e88e2b372691849741</id>
<content type='text'>
qed_read_table and qed_write_table use coroutine-only interfaces but
are not marked coroutine_fn. Happily, they are called only from
coroutine context, so we only need to add missed markers.

Reported-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
Signed-off-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@virtuozzo.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>block: convert bdrv_check callback to coroutine_fn</title>
<updated>2018-03-09T14:17:47+00:00</updated>
<author>
<name>Paolo Bonzini</name>
</author>
<published>2018-03-01T16:36:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=2fd6163884d74e74dd1ef54ab229d15c61d0b4cb'/>
<id>urn:sha1:2fd6163884d74e74dd1ef54ab229d15c61d0b4cb</id>
<content type='text'>
Suggested-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Message-Id: &lt;1516279431-30424-8-git-send-email-pbonzini@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>qed: Use DIV_ROUND_UP</title>
<updated>2016-06-07T15:19:24+00:00</updated>
<author>
<name>Laurent Vivier</name>
</author>
<published>2016-05-31T16:35:53+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=c41a73ffaf40aadc2c1e038ae4d12b62cd578e7f'/>
<id>urn:sha1:c41a73ffaf40aadc2c1e038ae4d12b62cd578e7f</id>
<content type='text'>
Replace (((n) + (d) - 1) /(d)) by DIV_ROUND_UP(n,d).

This patch is the result of coccinelle script
scripts/coccinelle/round.cocci

CC: qemu-block@nongnu.org
Signed-off-by: Laurent Vivier &lt;lvivier@redhat.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Signed-off-by: Michael Tokarev &lt;mjt@tls.msk.ru&gt;
</content>
</entry>
<entry>
<title>block: Clean up includes</title>
<updated>2016-01-20T12:36:23+00:00</updated>
<author>
<name>Peter Maydell</name>
</author>
<published>2016-01-18T18:01:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=80c71a241ae3cd3b89527865ba730b2fa1f9e46f'/>
<id>urn:sha1:80c71a241ae3cd3b89527865ba730b2fa1f9e46f</id>
<content type='text'>
Clean up includes so that osdep.h is included first and headers
which it implies are not included manually.

This commit was created with scripts/clean-includes.

Signed-off-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>block: Use g_new() &amp; friends to avoid multiplying sizes</title>
<updated>2014-08-20T09:51:28+00:00</updated>
<author>
<name>Markus Armbruster</name>
</author>
<published>2014-08-19T08:31:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=02c4f26b1517d9e403ec10d6f6ca3c0276d19e43'/>
<id>urn:sha1:02c4f26b1517d9e403ec10d6f6ca3c0276d19e43</id>
<content type='text'>
g_new(T, n) is safer than g_malloc(sizeof(*v) * n) for two reasons.
One, it catches multiplication overflowing size_t.  Two, it returns
T * rather than void *, which lets the compiler catch more type
errors.

Perhaps a conversion to g_malloc_n() would be neater in places, but
that's merely four years old, and we can't use such newfangled stuff.

This commit only touches allocations with size arguments of the form
sizeof(T), plus two that use 4 instead of sizeof(uint32_t).  We can
make the others safe by converting to g_malloc_n() when it becomes
available to us in a couple of years.

Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Reviewed-by: Max Reitz &lt;mreitz@redhat.com&gt;
Reviewed-by: Jeff Cody &lt;jcody@redhat.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>qed: Handle failure for potentially large allocations</title>
<updated>2014-08-15T13:07:15+00:00</updated>
<author>
<name>Kevin Wolf</name>
</author>
<published>2014-05-20T11:39:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=4f4896db5fb2285df016ff927508560c89b845a4'/>
<id>urn:sha1:4f4896db5fb2285df016ff927508560c89b845a4</id>
<content type='text'>
Some code in the block layer makes potentially huge allocations. Failure
is not completely unexpected there, so avoid aborting qemu and handle
out-of-memory situations gracefully.

This patch addresses the allocations in the qed block driver.

Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
Reviewed-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Reviewed-by: Benoit Canet &lt;benoit@irqsave.net&gt;
</content>
</entry>
<entry>
<title>qed: mark image clean after repair succeeds</title>
<updated>2012-08-10T08:25:12+00:00</updated>
<author>
<name>Stefan Hajnoczi</name>
</author>
<published>2012-08-09T12:05:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=b10170aca0616df85482dcc7ddda03437bc07cca'/>
<id>urn:sha1:b10170aca0616df85482dcc7ddda03437bc07cca</id>
<content type='text'>
The dirty bit is cleared after image repair succeeds in qed_open().
Move this into qed_check() so that all callers benefit from this
behavior when fix=true.

This is necessary so qemu-img check can call .bdrv_check() and mark the
image clean.

Signed-off-by: Stefan Hajnoczi &lt;stefanha@linux.vnet.ibm.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>qemu-img check: Print fixed clusters and recheck</title>
<updated>2012-06-15T12:03:42+00:00</updated>
<author>
<name>Kevin Wolf</name>
</author>
<published>2012-05-11T16:16:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=ccf34716eeda0e3ad203c8a28f01efb412c56763'/>
<id>urn:sha1:ccf34716eeda0e3ad203c8a28f01efb412c56763</id>
<content type='text'>
When any inconsistencies have been fixed, print the statistics and run
another check to make sure everything is correct now.

Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>qed: image fragmentation statistics</title>
<updated>2012-04-05T12:54:40+00:00</updated>
<author>
<name>Dong Xu Wang</name>
</author>
<published>2012-03-15T12:13:32+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=11c9c615c8e776e59ad0c6c6ed00ec7d38b5d865'/>
<id>urn:sha1:11c9c615c8e776e59ad0c6c6ed00ec7d38b5d865</id>
<content type='text'>
Signed-off-by: Dong Xu Wang &lt;wdongxu@linux.vnet.ibm.com&gt;
Reviewed-by: Stefan Hajnoczi &lt;stefanha@linux.vnet.ibm.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>Use glib memory allocation and free functions</title>
<updated>2011-08-21T04:01:08+00:00</updated>
<author>
<name>Anthony Liguori</name>
</author>
<published>2011-08-21T03:09:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.openslx.org/bwlp/qemu.git/commit/?id=7267c0947d7e8ae5dff7bafd932c3bc285f43e5c'/>
<id>urn:sha1:7267c0947d7e8ae5dff7bafd932c3bc285f43e5c</id>
<content type='text'>
qemu_malloc/qemu_free no longer exist after this commit.

Signed-off-by: Anthony Liguori &lt;aliguori@us.ibm.com&gt;
</content>
</entry>
</feed>
