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/include/hw/virtio
Alex Bennée 4987e5bf2e include/hw: VM state takes precedence in virtio_device_should_start
The VM status should always preempt the device status for these
checks. This ensures the device is in the correct state when we
suspend the VM prior to migrations. This restores the checks to the
order they where in before the refactoring moved things around.

While we are at it lets improve our documentation of the various
fields involved and document the two functions.

Fixes: 9f6bcfd99f (hw/virtio: move vm_running check to virtio_device_started)
Fixes: 259d69c00b (hw/virtio: introduce virtio_device_should_start)
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Tested-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Message-Id: <20221130112439.2527228-6-alex.bennee@linaro.org>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2 years ago
..
vhost-backend.h vhost: add method vhost_set_vring_err 2 years ago
vhost-scsi-common.h vhost-scsi: support inflight io track 4 years ago
vhost-scsi.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
vhost-user-blk.h vhost-user-blk: make 'config_wce' part of 'host_features' 2 years ago
vhost-user-fs.h Clean up ill-advised or unusual header guards 3 years ago
vhost-user-gpio.h hw/virtio: add started_vu status field to vhost-user-gpio 2 years ago
vhost-user-i2c.h Clean up ill-advised or unusual header guards 3 years ago
vhost-user-rng.h Clean up ill-advised or unusual header guards 3 years ago
vhost-user-scsi.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
vhost-user-vsock.h Clean up ill-advised or unusual header guards 3 years ago
vhost-user.h hw/virtio: generalise CHR_EVENT_CLOSED handling 2 years ago
vhost-vdpa.h vdpa: Delete CVQ migration blocker 2 years ago
vhost-vsock-common.h virtio: drop name parameter for virtio_init() 3 years ago
vhost-vsock.h vhost-vsock: handle common features in vhost-vsock-common 3 years ago
vhost.h vhost: enable vrings in vhost_dev_start() for vhost-user devices 2 years ago
virtio-access.h Replace TARGET_WORDS_BIGENDIAN 3 years ago
virtio-balloon.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
virtio-blk-common.h virtio-blk: move config size params to virtio-blk-common 2 years ago
virtio-blk.h virtio-blk: use BDRV_REQ_REGISTERED_BUF optimization hint 2 years ago
virtio-bus.h virtio-bus: introduce iommu_enabled() 3 years ago
virtio-crypto.h crypto: Introduce RSA algorithm 2 years ago
virtio-gpu-bswap.h Replace config-time define HOST_WORDS_BIGENDIAN 3 years ago
virtio-gpu-pci.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
virtio-gpu-pixman.h virtio-gpu: add a pixman helper header 6 years ago
virtio-gpu.h virtio-gpu: Respect UI refresh rate for EDID 2 years ago
virtio-input.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
virtio-iommu.h virtio-iommu: Use recursive lock to avoid deadlock 2 years ago
virtio-mem.h virtio-mem: Support VIRTIO_MEM_F_UNPLUGGED_INACCESSIBLE 3 years ago
virtio-mmio.h hw/virtio: enable ioeventfd configuring for mmio 4 years ago
virtio-net.h virtio-net: Expose ctrl virtqueue logic 2 years ago
virtio-pci.h virtio-pci: support queue reset 2 years ago
virtio-pmem.h qapi: Restrict device memory commands to machine code 4 years ago
virtio-rng.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
virtio-scsi.h virtio-scsi: move request-related items from .h to .c 3 years ago
virtio-serial.h Use OBJECT_DECLARE_SIMPLE_TYPE when possible 4 years ago
virtio.h include/hw: VM state takes precedence in virtio_device_should_start 2 years ago