virtio: list legacy-capable devices
commit7c78bdd7a3d0086179331f10d1f6f8cdac34731a
authorCornelia Huck <cohuck@redhat.com>
Tue, 7 Jul 2020 10:54:45 +0000 (7 12:54 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 22 Jul 2020 11:57:07 +0000 (22 07:57 -0400)
treeffd159500f3bf9666773e50339d1b8232396144d
parent3219b42f025d4d7a9c463235e9f937ab38067de3
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>
hw/virtio/virtio.c
include/hw/virtio/virtio.h