More misc patches for QEMU 5.0-rc3
The following changes since commit 267514b33ffa3f315adc26fc14d89f92e90840f5:
module: increase dirs array size by one (2020-04-13 02:56:18 -0400)
are available in the Git repository at:
git://github.com/bonzini/qemu.git tags/for-upstream
for you to fetch changes up to 9f5a0664187e9411c5c6b7dbd21a1f50922cf698:
hax: Windows doesn't like posix device names (2020-04-14 10:37:42 -0400)
----------------------------------------------------------------
Bugfixes, and reworking of the atomics documentation.
----------------------------------------------------------------
Igor Mammedov (2):
hostmem: set default prealloc_threads to valid value
tests: numa: test one backend with prealloc enabled
Volker Rümelin (1):
hax: Windows doesn't like posix device names
backends/hostmem.c | 1 + target/i386/hax-windows.c | 4 ++-- tests/qtest/numa-test.c | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-)
Signature · 1 line
2.18.2
[PULL 3/3] hax: Windows doesn't like posix device names
From: Volker Rümelin <[email protected]>
Patch acb9f95a7c "i386: Fix GCC warning with snprintf when HAX is enabled" replaced Windows device names with posix device names. Revert this.
Message-Id: <[email protected]>
--- target/i386/hax-windows.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
target/i386/hax-windows.c +2 -2
@@ -185,12 +185,12 @@ int hax_mod_version(struct hax_state *hax, struct hax_module_version *version)static char *hax_vm_devfs_string (int vm_id) { -return g_strdup_printf ("/dev/hax_vm/vm%02d" , vm_id); +return g_strdup_printf ("\\\\.\\hax_vm%02d" , vm_id); }static char *hax_vcpu_devfs_string (int vm_id,int vcpu_id) { -return g_strdup_printf ("/dev/hax_vm%02d/vcpu%02d" , vm_id, vcpu_id); +return g_strdup_printf ("\\\\.\\hax_vm%02d_vcpu%02d" , vm_id, vcpu_id); }int hax_host_create_vm (struct hax_state *hax,int *vmid)
Signature · 1 line
2.18.2
[PULL 1/3] hostmem: set default prealloc_threads to valid value
In reply to Paolo BonziniFrom: Igor Mammedov <[email protected]>
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.
Message-Id: <[email protected]>
--- backends/hostmem.c | 1 + 1 file changed, 1 insertion(+)
backends/hostmem.c +1 -0
@@ -280,6 +280,7 @@ static void host_memory_backend_init(Object *obj)/* TODO: convert access to globals to compat properties */ backend->merge =machine_mem_merge (machine); backend->dump =machine_dump_guest_core (machine); + backend->prealloc_threads =1 ; }static void host_memory_backend_post_init (Object *obj)
Signature · 1 line
2.18.2
[PULL 2/3] tests: numa: test one backend with prealloc enabled
In reply to Paolo BonziniFrom: Igor Mammedov <[email protected]>
Cannibalize one backend in the HMAT test to make sure that prealloc=y is tested.
Message-Id: <[email protected]>
--- tests/qtest/numa-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tests/qtest/numa-test.c +1 -1
@@ -455,7 +455,7 @@ static void pc_hmat_off_cfg(const void *data) cli =make_cli (data,"-nodefaults --preconfig " "-smp 2,sockets=2 " "-m 128M,slots=2,maxmem=1G " -"-object memory-backend-ram,size=64M,id=m0 " +"-object memory-backend-ram,size=64M,id=m0,prealloc=y " "-object memory-backend-ram,size=64M,id=m1 " "-numa node,nodeid=0,memdev=m0" ); qs =qtest_init (cli);
Signature · 1 line
2.18.2
Peter Maydell
AppliedQuoted 16 lines · Paolo Bonzini
The following changes since commit
267514b33ffa3f315adc26fc14d89f92e90840f5:module: increase dirs array size by one (2020-04-13 02:56:18 -0400)
are available in the Git repository at:
git://github.com/bonzini/qemu.gittags/for-upstreamfor you to fetch changes up to
9f5a0664187e9411c5c6b7dbd21a1f50922cf698:hax: Windows doesn't like posix device names (2020-04-14 10:37:42 -0400)
----------------------------------------------------------------
Bugfixes, and reworking of the atomics documentation.
Quoted 7 lines
----------------------------------------------------------------
Igor Mammedov (2):
hostmem: set defaultprealloc_threadsto valid value
tests: numa: test one backend with prealloc enabledVolker Rümelin (1):
hax: Windows doesn't like posix device names
Applied, thanks.
Please update the changelog at https://wiki.qemu.org/ChangeLog/5.0
for any user-visible changes.
-- PMM