]> git.proxmox.com Git - mirror_qemu.git/commit
vdpa: export vhost_vdpa_set_vring_ready
authorEugenio Pérez <eperezma@redhat.com>
Tue, 22 Aug 2023 08:53:27 +0000 (10:53 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 4 Oct 2023 08:54:19 +0000 (04:54 -0400)
commitd7ce0841767d01c226fc0e22436ce22a0ec74226
tree6d33774878b6085f661f1f5c1908ca93d867e92e
parentb40eba9cdde3b041f02a9cbaa23ca0eeda9bd9c1
vdpa: export vhost_vdpa_set_vring_ready

The vhost-vdpa net backend needs to enable vrings in a different order
than default, so export it.

No functional change intended except for tracing, that now includes the
(virtio) index being enabled and the return value of the ioctl.

Still ignoring return value of this function if called from
vhost_vdpa_dev_start, as reorganize calling code around it is out of
the scope of this series.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20230822085330.3978829-3-eperezma@redhat.com>
Tested-by: Lei Yang <leiyang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/trace-events
hw/virtio/vhost-vdpa.c
include/hw/virtio/vhost-vdpa.h