summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorCornelia Huck2020-07-07 12:54:45 +0200
committerMichael S. Tsirkin2020-07-22 13:57:07 +0200
commit7c78bdd7a3d0086179331f10d1f6f8cdac34731a (patch)
treeffd159500f3bf9666773e50339d1b8232396144d /include
parentvirtio-balloon: Replace free page hinting references to 'report' with 'hint' (diff)
downloadqemu-7c78bdd7a3d0086179331f10d1f6f8cdac34731a.tar.gz
qemu-7c78bdd7a3d0086179331f10d1f6f8cdac34731a.tar.xz
qemu-7c78bdd7a3d0086179331f10d1f6f8cdac34731a.zip
virtio: list legacy-capable devices
Several types of virtio devices had already been around before the virtio standard was specified. These devices support virtio in legacy (and transitional) mode. Devices that have been added in the virtio standard are considered non-transitional (i.e. with no support for legacy virtio). Provide a helper function so virtio transports can figure that out easily. Signed-off-by: Cornelia Huck <cohuck@redhat.com> Message-Id: <20200707105446.677966-2-cohuck@redhat.com> Cc: qemu-stable@nongnu.org Acked-by: Halil Pasic <pasic@linux.ibm.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/hw/virtio/virtio.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/hw/virtio/virtio.h b/include/hw/virtio/virtio.h
index b69d517496..198ffc7626 100644
--- a/include/hw/virtio/virtio.h
+++ b/include/hw/virtio/virtio.h
@@ -396,4 +396,6 @@ static inline bool virtio_device_disabled(VirtIODevice *vdev)
return unlikely(vdev->disabled || vdev->broken);
}
+bool virtio_legacy_allowed(VirtIODevice *vdev);
+
#endif