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
..
2018-01-08 11:18:23 +01:00
2018-01-11 22:03:50 +02:00
2018-01-16 14:54:52 +01:00
2018-01-11 22:03:50 +02:00
2018-01-16 13:28:10 +00:00
2017-12-18 17:07:02 +03:00
2018-01-18 21:52:37 +02:00
2017-08-01 17:27:33 +02:00
2018-01-16 14:54:52 +01:00
2018-01-11 22:03:50 +02:00
2017-12-18 17:07:02 +03:00
2017-10-27 16:03:54 +02:00
2018-01-16 15:45:15 +00:00
2018-01-16 14:54:52 +01:00
2017-09-21 16:34:27 +01:00
2018-01-16 15:45:15 +00:00
2018-01-18 21:52:38 +02:00
2018-01-10 12:53:00 +11:00
2017-12-21 20:11:28 +01:00
2018-01-16 13:28:09 +00:00
2017-10-15 05:54:43 +03:00
2017-12-18 17:07:02 +03:00
2018-01-11 22:03:50 +02:00
2017-10-27 16:03:54 +02:00
2017-10-27 16:03:54 +02:00
2017-12-15 09:49:24 +11:00
2017-07-14 17:59:42 +01:00
2018-01-11 22:03:50 +02:00
2018-01-16 14:54:52 +01:00
2017-12-21 09:30:31 +01:00
2018-01-16 15:45:15 +00:00
2017-12-18 17:07:02 +03:00
2018-01-16 14:54:50 +01:00
2017-10-27 16:03:54 +02:00
2018-01-18 21:52:38 +02:00
2018-01-18 21:52:38 +02:00
2018-01-11 22:03:50 +02:00
2018-01-17 09:35:24 +11:00
2018-01-11 22:03:50 +02:00
2018-01-16 15:45:15 +00:00
2018-01-16 13:28:21 +00:00
2017-12-05 19:13:45 +02:00
2018-01-11 22:03:50 +02:00
2018-01-09 21:48:20 +00:00
2018-01-09 21:48:20 +00:00
2018-01-16 14:54:52 +01:00
2018-01-16 14:54:52 +01:00
2018-01-16 14:54:52 +01:00
2017-10-27 16:04:27 +02:00
2017-12-18 17:07:02 +03:00
2018-01-11 22:03:50 +02:00
2018-01-11 22:03:50 +02:00
2018-01-18 21:52:39 +02:00
2017-12-18 17:07:03 +03:00
2018-01-11 22:03:50 +02:00
2017-07-07 11:10:03 -07:00
2017-10-27 16:04:27 +02:00
2017-08-30 18:23:25 +02:00