diff options
| author | Igor Mammedov | 2020-03-25 10:44:22 +0100 |
|---|---|---|
| committer | Paolo Bonzini | 2020-04-14 16:35:08 +0200 |
| commit | 2a4e02d104b15e0335fbb71af7e069751d7d33b7 (patch) | |
| tree | a72e1acdf72a561caf0669d42dad0cdedd308ee0 /include | |
| parent | module: increase dirs array size by one (diff) | |
| download | qemu-2a4e02d104b15e0335fbb71af7e069751d7d33b7.tar.gz qemu-2a4e02d104b15e0335fbb71af7e069751d7d33b7.tar.xz qemu-2a4e02d104b15e0335fbb71af7e069751d7d33b7.zip | |
hostmem: set default prealloc_threads to valid value
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
Return back initialization removed by 4ebc74dbbf to fix issue.
Fixes: 4ebc74dbbf7ad50e4101629f3f5da5fdc1544051
Reported-by: Raphael Norwitz <raphael.norwitz@nutanix.com>
Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Laurent Vivier <lvivier@redhat.com>
Message-Id: <20200325094423.24293-2-imammedo@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
