summary refs log tree commit diff stats
path: root/hw/display/vhost-user-gpu.c
diff options
context:
space:
mode:
authorJonah Palmer <jonah.palmer@oracle.com>2024-03-15 12:55:52 -0400
committerMichael S. Tsirkin <mst@redhat.com>2024-07-01 14:56:23 -0400
commitcf39b82860b63589460d8797dd70ae3c1647ccca (patch)
tree72812d26bf5f73fb3d94cf6d90ddd2749d6ac097 /hw/display/vhost-user-gpu.c
parent9d5a807c4cb56837f11be9a9250f854fab951290 (diff)
downloadfocaccia-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