block: unify flush implementations
Add coroutine support for flush and apply the same emulation thatwe already do for read/write. bdrv_aio_flush is simplified to alwaysgo through a coroutine.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block: drop redundant bdrv_flush implementation
Block drivers now only need to provide either of .bdrv_co_flush,.bdrv_aio_flush() or for legacy drivers .bdrv_flush(). Removethe redundant .bdrv_flush() implementations.
[Paolo Bonzini: change raw driver to bdrv_co_flush]...
block: add bdrv_co_discard and bdrv_aio_discard support
This similarly adds support for coroutine and asynchronous discard.
sheepdog: add coroutine_fn markers
This makes the following patch easier to review.
Cc: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Kevin Wolf <kwolf@redhat.com>
add socket_set_block
block: rename bdrv_co_rw_bh
fix memory leak in aio_write_f
Haven't released memory of 'ctx' before return.
Signed-off-by: Alex Jia <ajia@redhat.com>Signed-off-by: Kevin Wolf <kwolf@redhat.com>
xen_disk: Always set feature-barrier = 1
The synchronous .bdrv_flush callback doesn't exist any more and a device reallyshouldn't poke into the block layer internals anyway. All drivers are supposedto have a correctly working bdrv_flush, so let's just hard-code this....
hw/arm_gic.c: Fix save/load of irq_target array
irq_target array saving/loading is in the wrong loop.Version bump.
Signed-off-by: Dmitry Koshelev <karaghiozis@gmail.com>Acked-by: Andreas Färber <afaerber@suse.de>Signed-off-by: Andrzej Zaborowski <andrew.zaborowski@intel.com>
hw/omap2: Wire up the IRQ for the 2430's fifth GPIO module
The OMAP2430 version of the omap-gpio device has five GPIO modules,not four like the other OMAP2 versions; wire up the fifth module'sIRQ line correctly.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>...
View all revisions | View revisions
Also available in: Atom