iotests: Resolve test failures caused by hostname
`hostname -s` may output an errror:hostname: Name or service not knownThis causes all tests to fail for `make check-block`.
Suppress such error messages, letting the tests succeed.
Signed-off-by: Andreas Färber <afaerber@suse.de>...
qemu-img: let 'qemu-img convert' flush data
The 'qemu-img convert -h' advertise that the default cache mode is'writeback', while in fact it is 'unsafe'.
This patch 1) fix the help manual and 2) let bdrv_close() call bdrv_flush()
2) is needed because some backend storage doesn't have a self-flush...
aio: simplify qemu_aio_wait
The do...while loop can never loop, because select will just not return0 when invoked with infinite timeout.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Kevin Wolf <kwolf@redhat.com>
aio: return "AIO in progress" state from qemu_aio_wait
The definition of when qemu_aio_flush should loop is much simplerthan it looks. It just has to call qemu_aio_wait until it makesno progress and all flush callbacks return false. qemu_aio_waitis the logical place to tell the caller about this....
aio: remove process_queue callback and qemu_aio_process_queue
Both unused after the previous patch.
posix-aio: merge posix_aio_process_queue and posix_aio_read
posix_aio_read already calls qemu_aio_process_queue, and duallyqemu_aio_process_queue is always followed by a select loop that callsposix_aio_read.
No races are possible, so there is no need for a separate process_queue...
qemu-tool: map vm_clock to rt_clock
QED uses vm_clock timers so that images are not touched during and aftermigration. This however does not apply to qemu-io and qemu-img.Treat vm_clock as a synonym for rt_clock there, and enable it.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>...
qemu-io: use main_loop_wait
This will let timers run during aio_read and aio_write commands,though not during synchronous commands.
qcow2: Fix return value of alloc_refcount_block
Someone forgot something in commit 29c1a730... Documenting the rightreturn value is not enough, you also need to actually return it in thecode.
This bug sometimes causes error return values even when everything has...
block: allow interrupting a co_sleep_ns
In the next patch we want to reenter the coroutine fromblock_job_cancel_sync and cancel the timer.
View all revisions | View revisions
Also available in: Atom