aboutsummaryrefslogtreecommitdiff
path: root/hw/virtio/virtio.c
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2016-11-04 12:04:23 +0200
committerMichael S. Tsirkin <mst@redhat.com>2016-11-15 17:20:36 +0200
commit9b706dbbbb81f5cb7c67e491d38cd6077205e056 (patch)
treea6169a835baa959e8dbdaae6cadb22136665ad9e /hw/virtio/virtio.c
parent1b39bc1cf67eee07518ee05ce9306eaa53d868e4 (diff)
downloadqemu-9b706dbbbb81f5cb7c67e491d38cd6077205e056.zip
qemu-9b706dbbbb81f5cb7c67e491d38cd6077205e056.tar.gz
qemu-9b706dbbbb81f5cb7c67e491d38cd6077205e056.tar.bz2
virtio: allow per-device-class legacy features
Legacy features are those that transitional devices only expose on the legacy interface. Allow different ones per device class. Cc: qemu-stable@nongnu.org # dependency for the next patch Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'hw/virtio/virtio.c')
-rw-r--r--hw/virtio/virtio.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c
index 1df5f4e..72ee06b 100644
--- a/hw/virtio/virtio.c
+++ b/hw/virtio/virtio.c
@@ -2214,6 +2214,8 @@ static void virtio_device_class_init(ObjectClass *klass, void *data)
dc->props = virtio_properties;
vdc->start_ioeventfd = virtio_device_start_ioeventfd_impl;
vdc->stop_ioeventfd = virtio_device_stop_ioeventfd_impl;
+
+ vdc->legacy_features |= VIRTIO_LEGACY_FEATURES;
}
bool virtio_device_ioeventfd_enabled(VirtIODevice *vdev)