Re: [PATCH v1] softmmu/vl: make default prealloc-threads work w/o -mem-prealloc

2021-05-17 Thread Igor Mammedov
On Thu, 11 Mar 2021 11:59:18 +0300 Denis Plotnikov wrote: > Preallocation in memory backends can be specified with either global > QEMU option "-mem-prealloc", or with per-backend property > "prealloc=true". In the latter case, however, the default for the > number of preallocation threads is

Re: [PATCH v1] softmmu/vl: make default prealloc-threads work w/o -mem-prealloc

2021-05-05 Thread Paolo Bonzini
On 11/03/21 09:59, Denis Plotnikov wrote: diff --git a/softmmu/vl.c b/softmmu/vl.c index ff488ea3e7db..e392e226a2d3 100644 --- a/softmmu/vl.c +++ b/softmmu/vl.c @@ -2300,14 +2300,17 @@ static void qemu_validate_options(void) static void qemu_process_sugar_options(void) { -if

Re: [PATCH v1] softmmu/vl: make default prealloc-threads work w/o -mem-prealloc

2021-03-11 Thread Paolo Bonzini
On 11/03/21 09:59, Denis Plotnikov wrote: Preallocation in memory backends can be specified with either global QEMU option "-mem-prealloc", or with per-backend property "prealloc=true". In the latter case, however, the default for the number of preallocation threads is not set to the number of

[PATCH v1] softmmu/vl: make default prealloc-threads work w/o -mem-prealloc

2021-03-11 Thread Denis Plotnikov
Preallocation in memory backends can be specified with either global QEMU option "-mem-prealloc", or with per-backend property "prealloc=true". In the latter case, however, the default for the number of preallocation threads is not set to the number of vcpus, but remains at 1 instead. Fix it by