summaryrefslogtreecommitdiff
path: root/include
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 /include
parent1b39bc1cf67eee07518ee05ce9306eaa53d868e4 (diff)
downloadqemu-9b706dbbbb81f5cb7c67e491d38cd6077205e056.tar.gz
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 'include')
-rw-r--r--include/hw/virtio/virtio.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/hw/virtio/virtio.h b/include/hw/virtio/virtio.h
index f12a1a8635..bdb3c4b46b 100644
--- a/include/hw/virtio/virtio.h
+++ b/include/hw/virtio/virtio.h
@@ -113,6 +113,11 @@ typedef struct VirtioDeviceClass {
void (*set_config)(VirtIODevice *vdev, const uint8_t *config);
void (*reset)(VirtIODevice *vdev);
void (*set_status)(VirtIODevice *vdev, uint8_t val);
+ /* For transitional devices, this is a bitmap of features
+ * that are only exposed on the legacy interface but not
+ * the modern one.
+ */
+ uint64_t legacy_features;
/* Test and clear event pending status.
* Should be called after unmask to avoid losing events.
* If backend does not support masking,