diff options
author | Eugenio Pérez <eperezma@redhat.com> | 2022-07-20 08:59:33 +0200 |
---|---|---|
committer | Jason Wang <jasowang@redhat.com> | 2022-07-20 16:58:08 +0800 |
commit | 1f46ae65d85f677b660bda46685dd3e94885a7cb (patch) | |
tree | c0b37d27751168ae1bd4477c61cbf338a99825ac /hw/virtio/vhost-shadow-virtqueue.h | |
parent | f20b70eb5a68cfd8fef74a13ccdd494ef1cb0221 (diff) |
vhost: Decouple vhost_svq_add from VirtQueueElement
VirtQueueElement comes from the guest, but we're heading SVQ to be able
to modify the element presented to the device without the guest's
knowledge.
To do so, make SVQ accept sg buffers directly, instead of using
VirtQueueElement.
Add vhost_svq_add_element to maintain element convenience.
Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'hw/virtio/vhost-shadow-virtqueue.h')
0 files changed, 0 insertions, 0 deletions