Re: [Qemu-devel] [PATCH v5 1/4] vhost: remove assertion to prevent crash

2018-01-10 Thread Zhoujian (jay)
t; m...@redhat.com; wangxin (U) <wangxinxin.w...@huawei.com>; qemu- > sta...@nongnu.org; Gonglei (Arei) <arei.gong...@huawei.com>; Liuzhe (Ahriy, > Euler) <liuzh...@huawei.com> > Subject: Re: [Qemu-devel] [PATCH v5 1/4] vhost: remove assertion to prevent > crash > > On W

Re: [Qemu-devel] [PATCH v5 1/4] vhost: remove assertion to prevent crash

2018-01-10 Thread Igor Mammedov
On Wed, 10 Jan 2018 00:39:35 +0800 Jay Zhou wrote: > Start QEMU with more DIMM devices than limit but without any > vhost backends and then hotplug a vhost user backend, the VM > will be crashed. > Instead of asserting in vhost_user_set_mem_table(), error number > is

[Qemu-devel] [PATCH v5 1/4] vhost: remove assertion to prevent crash

2018-01-09 Thread Jay Zhou
Start QEMU with more DIMM devices than limit but without any vhost backends and then hotplug a vhost user backend, the VM will be crashed. Instead of asserting in vhost_user_set_mem_table(), error number is used to gracefully prevent device to start. This fixes the crash issue. Cc: