qemu-e2k/include/hw/virtio
Dr. David Alan Gilbert c44317efec vhost: Build temporary section list and deref after commit
Igor spotted that there's a race, where a region that's unref'd
in a _del callback might be free'd before the set_mem_table call in
the _commit callback, and thus the vhost might end up using free memory.

Fix this by building a complete temporary sections list, ref'ing every
section (during add and nop) and then unref'ing the whole list right
at the end of commit.

Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2018-02-08 21:06:40 +02:00
..
vhost-backend.h vhost-user: add new vhost user messages to support virtio config space 2018-01-18 21:52:37 +02:00
vhost-scsi-common.h
vhost-scsi.h
vhost-user-blk.h vhost-user-blk: introduce a new vhost-user-blk host device 2018-01-18 21:52:37 +02:00
vhost-user-scsi.h
vhost-vsock.h
vhost.h vhost: Build temporary section list and deref after commit 2018-02-08 21:06:40 +02:00
virtio-access.h
virtio-balloon.h
virtio-blk.h virtio-blk: make queue size configurable 2017-12-19 10:25:09 +00:00
virtio-bus.h virtio: remove event notifier cleanup call on de-assign 2018-02-08 21:06:26 +02:00
virtio-crypto.h
virtio-gpu.h
virtio-input.h virtio-input: send rel-wheel events for wheel buttons 2017-09-29 10:36:33 +02:00
virtio-net.h
virtio-rng.h
virtio-scsi.h
virtio-serial.h
virtio.h virtio: Add queue interface to restore avail index from vring used index 2017-12-01 19:05:58 +02:00