libqos: expose common virtqueue setup/cleanup functions
commite56536bc8b897efdf069c25e68202e521cdcbb49
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 23 Oct 2019 10:04:22 +0000 (23 11:04 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 25 Oct 2019 11:46:22 +0000 (25 07:46 -0400)
tree59b3d5a093a03c24140d916673e558d3e590fcd9
parent957d8d1d06fa15e1db50166d17a4fe9094f7fec3
libqos: expose common virtqueue setup/cleanup functions

The VIRTIO 1.0 code will need to perform additional steps but it will
reuse the common virtqueue setup/cleanup code.  Make these functions
public.

Make sure to invoke callbacks via QVirtioBus instead of directly calling
the virtio-pci Legacy versions of these functions.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Sergio Lopez <slp@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20191023100425.12168-14-stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
tests/libqos/virtio-pci.c
tests/libqos/virtio-pci.h