summaryrefslogtreecommitdiffstats
path: root/hw/net/smc91c111.c
diff options
context:
space:
mode:
authorKangjie Xu2022-10-17 11:25:56 +0200
committerMichael S. Tsirkin2022-11-07 19:12:20 +0100
commit7f863302bdb8c2d231e3d0927e0355e3c10d0cfb (patch)
tree7e12db7a794b845d27e61259e51f23bedf2fb559 /hw/net/smc91c111.c
parentvirtio-net: support queue reset (diff)
downloadqemu-7f863302bdb8c2d231e3d0927e0355e3c10d0cfb.tar.gz
qemu-7f863302bdb8c2d231e3d0927e0355e3c10d0cfb.tar.xz
qemu-7f863302bdb8c2d231e3d0927e0355e3c10d0cfb.zip
virtio-net: support queue_enable
Support queue_enable in vhost-kernel scenario. It can be called when a vq reset operation has been performed and the vq is restared. It should be noted that we can restart the vq when the vhost has already started. When launching a new vhost device, the vhost is not started and all vqs are not initalized until VIRTIO_PCI_COMMON_STATUS is written. Thus, we should use vhost_started to differentiate the two cases: vq reset and device start. Currently it only supports vhost-kernel. Signed-off-by: Kangjie Xu <kangjie.xu@linux.alibaba.com> Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com> Acked-by: Jason Wang <jasowang@redhat.com> Message-Id: <20221017092558.111082-14-xuanzhuo@linux.alibaba.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/net/smc91c111.c')
0 files changed, 0 insertions, 0 deletions