diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2023-04-12 11:23:00 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-09-26 18:09:08 +0200 |
commit | e2dbca033710efea20b0b0a26ca05570dcdabd49 (patch) | |
tree | 9df6c8ed2f408e9ceea2b125a40f6cf028099eff /block/qcow2.c | |
parent | 1bce34aaa9d324b6d4aaf681e634e1840ca5d04e (diff) | |
download | qemu-e2dbca033710efea20b0b0a26ca05570dcdabd49.zip qemu-e2dbca033710efea20b0b0a26ca05570dcdabd49.tar.gz qemu-e2dbca033710efea20b0b0a26ca05570dcdabd49.tar.bz2 |
block: mark mixed functions that can suspend
The marking should be extended transitively to all functions that call
these ones, so that static analysis can be done much more efficiently.
However, this is a start and makes it possible to use vrc's path-based
searches to find potential bugs where coroutine_fns call blocking functions.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'block/qcow2.c')
-rw-r--r-- | block/qcow2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/qcow2.c b/block/qcow2.c index af43d59d..5a3c537 100644 --- a/block/qcow2.c +++ b/block/qcow2.c @@ -5288,7 +5288,7 @@ static ImageInfoSpecific *qcow2_get_specific_info(BlockDriverState *bs, return spec_info; } -static int qcow2_has_zero_init(BlockDriverState *bs) +static int coroutine_mixed_fn qcow2_has_zero_init(BlockDriverState *bs) { BDRVQcow2State *s = bs->opaque; bool preallocated; |