Re: [PATCH for-5.0 1/2] hostmem: set default prealloc_threads to valid value

2020-03-25 Thread Laurent Vivier
On 25/03/2020 10:44, Igor Mammedov wrote: > Commit 4ebc74dbbf removed default prealloc_threads initialization > by mistake, and that makes QEMU crash with division on zero at > numpages_per_thread = numpages / memset_num_threads; > when QEMU is started with following backend > -object memory-ba

[PATCH for-5.0 1/2] hostmem: set default prealloc_threads to valid value

2020-03-25 Thread Igor Mammedov
Commit 4ebc74dbbf removed default prealloc_threads initialization by mistake, and that makes QEMU crash with division on zero at numpages_per_thread = numpages / memset_num_threads; when QEMU is started with following backend -object memory-backend-ram,id=ram-node0,prealloc=yes,size=128M Retur