libqos: extract Legacy virtio-pci.c code
commit9598f9e4023cc4b0f1f4c4964e4d0debc30cc77c
authorStefan Hajnoczi <stefanha@redhat.com>
Wed, 23 Oct 2019 10:04:24 +0000 (23 11:04 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 25 Oct 2019 11:46:22 +0000 (25 07:46 -0400)
tree9f06095a8698c8802b711bd45b725890d5da34e8
parentf17429e545dae46fbe85eebd89fec4e720a1e241
libqos: extract Legacy virtio-pci.c code

The current libqos virtio-pci.c code implements the VIRTIO Legacy
interface.  Extract existing code in preparation for VIRTIO 1.0 support.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Sergio Lopez <slp@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20191023100425.12168-16-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