summaryrefslogtreecommitdiffstats
path: root/tests/libqos/virtio.c
diff options
context:
space:
mode:
authorStefan Hajnoczi2019-10-23 12:04:12 +0200
committerMichael S. Tsirkin2019-10-25 13:46:22 +0200
commita9340358f4d5d0e8e0c7a3a23cb4e5b68334974c (patch)
treee5c2f67f97b7becd4986ae0516fc6488636e3a8e /tests/libqos/virtio.c
parentlibqos: read QVIRTIO_MMIO_VERSION register (diff)
downloadqemu-a9340358f4d5d0e8e0c7a3a23cb4e5b68334974c.tar.gz
qemu-a9340358f4d5d0e8e0c7a3a23cb4e5b68334974c.tar.xz
qemu-a9340358f4d5d0e8e0c7a3a23cb4e5b68334974c.zip
libqos: extend feature bits to 64-bit
In VIRTIO 1.0 feature bits changed from 32-bit to 64-bit. (In fact, the transports allow even more feature bits but nothing uses more than 64 bits today.) Add 64-bit feature bit support to virtio-mmio and virtio-pci. This will be necessary for VIRTIO 1.0 support. Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20191023100425.12168-4-stefanha@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'tests/libqos/virtio.c')
-rw-r--r--tests/libqos/virtio.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/libqos/virtio.c b/tests/libqos/virtio.c
index 0ae9956fc8..4f7e6bb8a1 100644
--- a/tests/libqos/virtio.c
+++ b/tests/libqos/virtio.c
@@ -33,12 +33,12 @@ uint64_t qvirtio_config_readq(QVirtioDevice *d, uint64_t addr)
return d->bus->config_readq(d, addr);
}
-uint32_t qvirtio_get_features(QVirtioDevice *d)
+uint64_t qvirtio_get_features(QVirtioDevice *d)
{
return d->bus->get_features(d);
}
-void qvirtio_set_features(QVirtioDevice *d, uint32_t features)
+void qvirtio_set_features(QVirtioDevice *d, uint64_t features)
{
d->features = features;
d->bus->set_features(d, features);