]> Git Repo - qemu.git/commit
virtio: add vhost support for virtio devices
authorJonah Palmer <[email protected]>
Fri, 1 Apr 2022 13:23:19 +0000 (09:23 -0400)
committerMichael S. Tsirkin <[email protected]>
Mon, 16 May 2022 08:38:40 +0000 (04:38 -0400)
commitc255488d67dc0d52052a12e0242bf00dcbe5223f
tree112aff6a9f3ed155a0e4dbda2ce2eff91a915bc4
parent3857cd5c7ffd0bcc49bd2b66654af0909c847d02
virtio: add vhost support for virtio devices

This patch adds a get_vhost() callback function for VirtIODevices that
returns the device's corresponding vhost_dev structure, if the vhost
device is running. This patch also adds a vhost_started flag for
VirtIODevices.

Previously, a VirtIODevice wouldn't be able to tell if its corresponding
vhost device was active or not.

Signed-off-by: Jonah Palmer <[email protected]>
Message-Id: <1648819405[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
12 files changed:
hw/block/vhost-user-blk.c
hw/display/vhost-user-gpu.c
hw/input/vhost-user-input.c
hw/net/virtio-net.c
hw/scsi/vhost-scsi.c
hw/virtio/vhost-user-fs.c
hw/virtio/vhost-user-rng.c
hw/virtio/vhost-vsock-common.c
hw/virtio/vhost.c
hw/virtio/virtio-crypto.c
hw/virtio/virtio.c
include/hw/virtio/virtio.h
This page took 0.028393 seconds and 4 git commands to generate.