vhost: Track descriptor chain in private at SVQ
commit495fe3a78749c39c0e772c4e1a55d6cb8a7e5292
authorEugenio Pérez <eperezma@redhat.com>
Thu, 12 May 2022 17:57:42 +0000 (12 19:57 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 13 May 2022 11:57:26 +0000 (13 07:57 -0400)
tree6ef58d337e502c44d1d2c44b2450b913ebd6eaf3
parentaa69abe6e8b0f2dbc3022359a8947fa37bf988b9
vhost: Track descriptor chain in private at SVQ

The device could have access to modify them, and it definitely have
access when we implement packed vq. Harden SVQ maintaining a private
copy of the descriptor chain. Other fields like buffer addresses are
already maintained sepparatedly.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Message-Id: <20220512175747.142058-2-eperezma@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/vhost-shadow-virtqueue.c
hw/virtio/vhost-shadow-virtqueue.h