qemu-e2k/hw/virtio
Jay Zhou f4bf56fb78 vhost: remove assertion to prevent crash
QEMU will assert on vhost-user backed virtio device hotplug if QEMU is
using more RAM regions than VHOST_MEMORY_MAX_NREGIONS (for example if
it were started with a lot of DIMM devices).

Fix it by returning error instead of asserting and let callers of
vhost_set_mem_table() handle error condition gracefully.

Cc: qemu-stable@nongnu.org
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Jay Zhou <jianjay.zhou@huawei.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2018-01-18 21:52:39 +02:00
..
Makefile.objs
trace-events
vhost-backend.c
vhost-stub.c
vhost-user.c vhost: remove assertion to prevent crash 2018-01-18 21:52:39 +02:00
vhost-vsock.c
vhost.c
virtio-balloon.c
virtio-bus.c virtio: postpone the execution of event_notifier_cleanup function 2018-01-18 21:52:37 +02:00
virtio-crypto-pci.c
virtio-crypto.c
virtio-mmio.c
virtio-pci.c vhost-user-blk: introduce a new vhost-user-blk host device 2018-01-18 21:52:37 +02:00
virtio-pci.h vhost-user-blk: introduce a new vhost-user-blk host device 2018-01-18 21:52:37 +02:00
virtio-rng.c
virtio.c virtio: improve virtio devices initialization time 2018-01-18 21:52:38 +02:00