]> git.ipfire.org Git - thirdparty/qemu.git/commit
libqos: add MSI-X callbacks to QVirtioPCIDevice
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 23 Oct 2019 10:04:21 +0000 (11:04 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 25 Oct 2019 11:46:22 +0000 (07:46 -0400)
commit957d8d1d06fa15e1db50166d17a4fe9094f7fec3
tree7907ed1c9acd0d82a5747d2f51b0e8391592ccb1
parent1e59a866100caf205782334bf7f7a40f28fd23be
libqos: add MSI-X callbacks to QVirtioPCIDevice

The MSI-X vectors are programmed differently in the VIRTIO 1.0 and
Legacy interfaces.  Introduce callbacks so different implementations can
be used depending on the interface version.

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-13-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