You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
qemu/hw/block
Alex Bennée 71e076a07d hw/virtio: generalise CHR_EVENT_CLOSED handling
..and use for both virtio-user-blk and virtio-user-gpio. This avoids
the circular close by deferring shutdown due to disconnection until a
later point. virtio-user-blk already had this mechanism in place so
generalise it as a vhost-user helper function and use for both blk and
gpio devices.

While we are at it we also fix up vhost-user-gpio to re-establish the
event handler after close down so we can reconnect later.

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Raphael Norwitz <raphael.norwitz@nutanix.com>
Message-Id: <20221130112439.2527228-5-alex.bennee@linaro.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2 years ago
..
dataplane virtio-scsi: fix race in virtio_scsi_dataplane_start() 2 years ago
Kconfig hw/block/fdc: Extract SysBus floppy controllers to fdc-sysbus.c 3 years ago
block.c block: add missed block_acct_setup with new block device init procedure 2 years ago
cdrom.c Include qemu-common.h exactly where needed 6 years ago
ecc.c vmstate: Constify some VMStateDescriptions 4 years ago
fdc-internal.h hw/block/fdc: Declare shared prototypes in fdc-internal.h 3 years ago
fdc-isa.c acpi: fdc-isa: replace ISADeviceClass::build_aml with AcpiDevAmlIfClass:build_dev_aml 2 years ago
fdc-sysbus.c hw/block/fdc-sysbus: Always mark sysbus floppy controllers as not having DMA 2 years ago
fdc.c block: Change blk_{pread,pwrite}() param order 2 years ago
hd-geometry.c hw/block/hd-geometry: Do not override specified bios-chs-trans 2 years ago
m25p80.c m25p80: Add the w25q01jvq SFPD table 2 years ago
m25p80_sfdp.c m25p80: Add the w25q01jvq SFPD table 2 years ago
m25p80_sfdp.h m25p80: Add the w25q01jvq SFPD table 2 years ago
meson.build m25p80: Add the n25q256a SFDP table 2 years ago
nand.c block: Change blk_{pread,pwrite}() param order 2 years ago
onenand.c block: Change blk_{pread,pwrite}() param order 2 years ago
pflash_cfi01.c Revert "hw/block/pflash_cfi: Error out if dev length isn't power of 2" 2 years ago
pflash_cfi02.c Revert "hw/block/pflash_cfi: Error out if dev length isn't power of 2" 2 years ago
swim.c qbus: Rename qbus_create_inplace() to qbus_init() 3 years ago
tc58128.c hw/sh4: Add missing license 4 years ago
trace-events m25p80: Add basic support for the SFDP command 2 years ago
trace.h trace: switch position of headers to what Meson requires 4 years ago
vhost-user-blk.c hw/virtio: generalise CHR_EVENT_CLOSED handling 2 years ago
virtio-blk-common.c virtio-blk: move config size params to virtio-blk-common 2 years ago
virtio-blk.c virtio-blk: use BDRV_REQ_REGISTERED_BUF optimization hint 2 years ago
xen-block.c block: get rid of blk->guest_block_size 2 years ago
xen_blkif.h xen: Import other xen/io/*.h 5 years ago