diff options
author | Si-Wei Liu <si-wei.liu@oracle.com> | 2022-05-06 19:28:12 -0700 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2022-05-16 16:15:40 -0400 |
commit | aa8581945a13712ff3eed0ad3ba7a9664fc1604b (patch) | |
tree | 1bf06bd45b132b3f38e563a45ce710a97737782d /hw/net/trace-events | |
parent | 18aa91cddd8caa14aae094f9b59c0381959cb320 (diff) |
virtio-net: setup vhost_dev and notifiers for cvq only when feature is negotiated
When the control virtqueue feature is absent or not negotiated,
vhost_net_start() still tries to set up vhost_dev and install
vhost notifiers for the control virtqueue, which results in
erroneous ioctl calls with incorrect queue index sending down
to driver. Do that only when needed.
Fixes: 22288fe ("virtio-net: vhost control virtqueue support")
Signed-off-by: Si-Wei Liu <si-wei.liu@oracle.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <1651890498-24478-2-git-send-email-si-wei.liu@oracle.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/net/trace-events')
0 files changed, 0 insertions, 0 deletions