<feed xmlns='http://www.w3.org/2005/Atom'>
<title>qemu/qemu.git/block/qed-table.c, branch master</title>
<subtitle>QEMU main repository</subtitle>
<id>https://git.landau.one/pub/scm/virt/qemu/qemu.git/atom?h=master</id>
<link rel='self' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/'/>
<updated>2023-06-28T07:46:34+00:00</updated>
<entry>
<title>block: use bdrv_co_debug_event in coroutine context</title>
<updated>2023-06-28T07:46:34+00:00</updated>
<author>
<name>Paolo Bonzini</name>
<email>pbonzini@redhat.com</email>
</author>
<published>2023-06-01T11:51:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=17362398ee1a7f04e8006a46333145d8b707fd35'/>
<id>urn:sha1:17362398ee1a7f04e8006a46333145d8b707fd35</id>
<content type='text'>
bdrv_co_debug_event was recently introduced, with bdrv_debug_event
becoming a wrapper for use in unknown context.  Because most of the
time bdrv_debug_event is used on a BdrvChild via the wrapper macro
BLKDBG_EVENT, introduce a similar macro BLKDBG_CO_EVENT that calls
bdrv_co_debug_event, and switch whenever possible.

Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Message-ID: &lt;20230601115145.196465-13-pbonzini@redhat.com&gt;
Reviewed-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>block: Mark public read/write functions GRAPH_RDLOCK</title>
<updated>2023-02-23T18:49:17+00:00</updated>
<author>
<name>Kevin Wolf</name>
<email>kwolf@redhat.com</email>
</author>
<published>2023-02-03T15:21:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=b9b10c35e5c8bdb800601b142c44a4bd2da5a6d2'/>
<id>urn:sha1:b9b10c35e5c8bdb800601b142c44a4bd2da5a6d2</id>
<content type='text'>
This adds GRAPH_RDLOCK annotations to declare that callers of
bdrv_co_pread*/pwrite*() need to hold a reader lock for the graph.

For some places, we know that they will hold the lock, but we don't have
the GRAPH_RDLOCK annotations yet. In this case, add assume_graph_lock()
with a FIXME comment. These places will be removed once everything is
properly annotated.

Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
Message-Id: &lt;20230203152202.49054-12-kwolf@redhat.com&gt;
Reviewed-by: Emanuele Giuseppe Esposito &lt;eesposit@redhat.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>block: Mark bdrv_co_flush() and callers GRAPH_RDLOCK</title>
<updated>2023-02-23T18:49:12+00:00</updated>
<author>
<name>Emanuele Giuseppe Esposito</name>
<email>eesposit@redhat.com</email>
</author>
<published>2023-02-03T15:21:46+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=880953493386a69416d2e1cdc063c670585a03ac'/>
<id>urn:sha1:880953493386a69416d2e1cdc063c670585a03ac</id>
<content type='text'>
This adds GRAPH_RDLOCK annotations to declare that callers of
bdrv_co_flush() need to hold a reader lock for the graph.

For some places, we know that they will hold the lock, but we don't have
the GRAPH_RDLOCK annotations yet. In this case, add assume_graph_lock()
with a FIXME comment. These places will be removed once everything is
properly annotated.

Signed-off-by: Emanuele Giuseppe Esposito &lt;eesposit@redhat.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
Message-Id: &lt;20230203152202.49054-8-kwolf@redhat.com&gt;
Reviewed-by: Emanuele Giuseppe Esposito &lt;eesposit@redhat.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>include/block: Untangle inclusion loops</title>
<updated>2023-01-20T06:24:28+00:00</updated>
<author>
<name>Markus Armbruster</name>
<email>armbru@redhat.com</email>
</author>
<published>2022-12-21T13:35:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=e2c1c34f139f49ef909bb4322607fb8b39002312'/>
<id>urn:sha1:e2c1c34f139f49ef909bb4322607fb8b39002312</id>
<content type='text'>
We have two inclusion loops:

       block/block.h
    -&gt; block/block-global-state.h
    -&gt; block/block-common.h
    -&gt; block/blockjob.h
    -&gt; block/block.h

       block/block.h
    -&gt; block/block-io.h
    -&gt; block/block-common.h
    -&gt; block/blockjob.h
    -&gt; block/block.h

I believe these go back to Emanuele's reorganization of the block API,
merged a few months ago in commit d7e2fe4aac8.

Fortunately, breaking them is merely a matter of deleting unnecessary
includes from headers, and adding them back in places where they are
now missing.

Signed-off-by: Markus Armbruster &lt;armbru@redhat.com&gt;
Message-Id: &lt;20221221133551.3967339-2-armbru@redhat.com&gt;
</content>
</entry>
<entry>
<title>qed: switch to *_co_* functions</title>
<updated>2022-10-27T18:14:11+00:00</updated>
<author>
<name>Alberto Faria</name>
<email>afaria@redhat.com</email>
</author>
<published>2022-10-13T12:37:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=3aba34adb19131ebfb996f700c518a0352a489ac'/>
<id>urn:sha1:3aba34adb19131ebfb996f700c518a0352a489ac</id>
<content type='text'>
Signed-off-by: Alberto Faria &lt;afaria@redhat.com&gt;
Signed-off-by: Paolo Bonzini &lt;pbonzini@redhat.com&gt;
Message-Id: &lt;20221013123711.620631-21-pbonzini@redhat.com&gt;
Reviewed-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>osdep: Move memalign-related functions to their own header</title>
<updated>2022-03-07T13:16:49+00:00</updated>
<author>
<name>Peter Maydell</name>
<email>peter.maydell@linaro.org</email>
</author>
<published>2022-02-26T18:07:23+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=5df022cf2e5e24910a7d579d5780ae78bc24f247'/>
<id>urn:sha1:5df022cf2e5e24910a7d579d5780ae78bc24f247</id>
<content type='text'>
Move the various memalign-related functions out of osdep.h and into
their own header, which we include only where they are used.
While we're doing this, add some brief documentation comments.

Signed-off-by: Peter Maydell &lt;peter.maydell@linaro.org&gt;
Reviewed-by: Richard Henderson &lt;richard.henderson@linaro.org&gt;
Reviewed-by: Philippe Mathieu-Daudé &lt;f4bug@amsat.org&gt;
Message-id: 20220226180723.1706285-10-peter.maydell@linaro.org
</content>
</entry>
<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>
<email>vsementsov@virtuozzo.com</email>
</author>
<published>2019-04-30T12:36:11+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/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/qed: use buffer-based io</title>
<updated>2019-04-30T13:29:00+00:00</updated>
<author>
<name>Vladimir Sementsov-Ogievskiy</name>
<email>vsementsov@virtuozzo.com</email>
</author>
<published>2019-04-22T14:58:33+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=696e8cb292074c28ced30b4a11d51dc8b3087db4'/>
<id>urn:sha1:696e8cb292074c28ced30b4a11d51dc8b3087db4</id>
<content type='text'>
Move to _co_ versions of io functions qed_read_table() and
qed_write_table(), as we use qemu_co_mutex_unlock()
anyway.

Signed-off-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@virtuozzo.com&gt;
Reviewed-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Reviewed-by: Stefano Garzarella &lt;sgarzare@redhat.com&gt;
Signed-off-by: Kevin Wolf &lt;kwolf@redhat.com&gt;
</content>
</entry>
<entry>
<title>block/qed: use qemu_iovec_init_buf</title>
<updated>2019-02-22T09:42:13+00:00</updated>
<author>
<name>Vladimir Sementsov-Ogievskiy</name>
<email>vsementsov@virtuozzo.com</email>
</author>
<published>2019-02-18T14:09:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/qemu.git/commit/?id=342544f98b8e27adef17bb2ca7964c6efb3698d6'/>
<id>urn:sha1:342544f98b8e27adef17bb2ca7964c6efb3698d6</id>
<content type='text'>
Use new qemu_iovec_init_buf() instead of
qemu_iovec_init_external( ... , 1), which simplifies the code.

Signed-off-by: Vladimir Sementsov-Ogievskiy &lt;vsementsov@virtuozzo.com&gt;
Reviewed-by: Eric Blake &lt;eblake@redhat.com&gt;
Reviewed-by: Stefan Hajnoczi &lt;stefanha@redhat.com&gt;
Message-id: 20190218140926.333779-11-vsementsov@virtuozzo.com
Message-Id: &lt;20190218140926.333779-11-vsementsov@virtuozzo.com&gt;
Signed-off-by: Stefan Hajnoczi &lt;stefanha@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>
<email>pbonzini@redhat.com</email>
</author>
<published>2018-03-01T16:36:19+00:00</published>
<link rel='alternate' type='text/html' href='https://git.landau.one/pub/scm/virt/qemu/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>
</feed>
