diff options
| author | Jonah Palmer <jonah.palmer@oracle.com> | 2024-03-15 12:55:52 -0400 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2024-07-01 14:56:23 -0400 |
| commit | cf39b82860b63589460d8797dd70ae3c1647ccca (patch) | |
| tree | 72812d26bf5f73fb3d94cf6d90ddd2749d6ac097 /hw/display/vhost-user-gpu.c | |
| parent | 9d5a807c4cb56837f11be9a9250f854fab951290 (diff) | |
| download | focaccia-qemu-cf39b82860b63589460d8797dd70ae3c1647ccca.tar.gz focaccia-qemu-cf39b82860b63589460d8797dd70ae3c1647ccca.zip | |
virtio/virtio-pci: Handle extra notification data
Add support to virtio-pci 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-pci device when this feature is enabled varies depending on the device's virtqueue layout. In a split virtqueue layout, this data includes: - upper 16 bits: shadow_avail_idx - lower 16 bits: virtqueue index In a packed virtqueue layout, this data includes: - upper 16 bits: 1-bit wrap counter & 15-bit shadow_avail_idx - lower 16 bits: virtqueue index Signed-off-by: Jonah Palmer <jonah.palmer@oracle.com> Message-Id: <20240315165557.26942-2-jonah.palmer@oracle.com> Reviewed-by: Eugenio Pérez <eperezma@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'hw/display/vhost-user-gpu.c')
0 files changed, 0 insertions, 0 deletions