diff options
| author | Jay Zhou <jianjay.zhou@huawei.com> | 2018-01-12 10:47:57 +0800 |
|---|---|---|
| committer | Michael S. Tsirkin <mst@redhat.com> | 2018-01-18 21:52:39 +0200 |
| commit | f4bf56fb78ed0e9f60fa1ed656c14ff4c494da5a (patch) | |
| tree | d5a30ac7e2374d362cc7a927665d1938ed1e03ba /contrib/libvhost-user/libvhost-user.c | |
| parent | 69aff030643c1616474458cf7e19fc15a5f8f462 (diff) | |
| download | focaccia-qemu-f4bf56fb78ed0e9f60fa1ed656c14ff4c494da5a.tar.gz focaccia-qemu-f4bf56fb78ed0e9f60fa1ed656c14ff4c494da5a.zip | |
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>
Diffstat (limited to 'contrib/libvhost-user/libvhost-user.c')
0 files changed, 0 insertions, 0 deletions