]> www.infradead.org Git - users/dwmw2/qemu.git/commit
vhost: use SVQ element ndescs instead of opaque data for desc validation
authorEugenio Pérez <eperezma@redhat.com>
Tue, 23 Aug 2022 18:30:27 +0000 (20:30 +0200)
committerJason Wang <jasowang@redhat.com>
Fri, 2 Sep 2022 02:22:39 +0000 (10:22 +0800)
commit86f5f2546f03a3dfde421c715187b262e29b2848
tree20e80eb5c114e1cc8ede413db7e37e53cf19cb7c
parent9c2ab2f1ec333be8614cc12272d4b91960704dbe
vhost: use SVQ element ndescs instead of opaque data for desc validation

Since we're going to allow SVQ to add elements without the guest's
knowledge and without its own VirtQueueElement, it's easier to check if
an element is a valid head checking a different thing than the
VirtQueueElement.

Signed-off-by: Eugenio Pérez <eperezma@redhat.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/virtio/vhost-shadow-virtqueue.c