virtio-mmio: Handle extra notification data
authorJonah Palmer <jonah.palmer@oracle.com>
Fri, 15 Mar 2024 16:55:54 +0000 (12:55 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Mon, 1 Jul 2024 18:56:23 +0000 (14:56 -0400)
commit54869366be60af2eb52cffaedad73ba1f4247e15
treedaea84a53c7a9a0c2e074a2849814ea248b7356e
parent78378f450a723eed34156259ca2861a0c5ca77cf
virtio-mmio: Handle extra notification data

Add support to virtio-mmio devices for handling the extra data sent from
the driver to the device when the VIRTIO_F_NOTIFICATION_DATA transport
feature has been negotiated.

The extra data that's passed to the virtio-mmio device when this feature
is enabled varies depending on the device's virtqueue layout.

The data passed to the virtio-mmio device is in the same format as the
data passed to virtio-pci devices.

Signed-off-by: Jonah Palmer <jonah.palmer@oracle.com>
Message-Id: <20240315165557.26942-4-jonah.palmer@oracle.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/virtio-mmio.c