Skip to content

Commit 2f7cc1f

Browse files
committed
Merge remote-tracking branch 'remotes/bonzini/tags/for-upstream' into staging
Bugfixes, and reworking of the atomics documentation. # gpg: Signature made Tue 14 Apr 2020 15:38:01 BST # gpg: using RSA key F13338574B662389866C7682BFFBD25F78C7AE83 # gpg: issuer "[email protected]" # gpg: Good signature from "Paolo Bonzini <[email protected]>" [full] # gpg: aka "Paolo Bonzini <[email protected]>" [full] # Primary key fingerprint: 46F5 9FBD 57D6 12E7 BFD4 E2F7 7E15 100C CD36 69B1 # Subkey fingerprint: F133 3857 4B66 2389 866C 7682 BFFB D25F 78C7 AE83 * remotes/bonzini/tags/for-upstream: hax: Windows doesn't like posix device names tests: numa: test one backend with prealloc enabled hostmem: set default prealloc_threads to valid value Signed-off-by: Peter Maydell <[email protected]>
2 parents a457215 + 9f5a066 commit 2f7cc1f

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

backends/hostmem.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -280,6 +280,7 @@ static void host_memory_backend_init(Object *obj)
280280
/* TODO: convert access to globals to compat properties */
281281
backend->merge = machine_mem_merge(machine);
282282
backend->dump = machine_dump_guest_core(machine);
283+
backend->prealloc_threads = 1;
283284
}
284285

285286
static void host_memory_backend_post_init(Object *obj)

target/i386/hax-windows.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,12 +185,12 @@ int hax_mod_version(struct hax_state *hax, struct hax_module_version *version)
185185

186186
static char *hax_vm_devfs_string(int vm_id)
187187
{
188-
return g_strdup_printf("/dev/hax_vm/vm%02d", vm_id);
188+
return g_strdup_printf("\\\\.\\hax_vm%02d", vm_id);
189189
}
190190

191191
static char *hax_vcpu_devfs_string(int vm_id, int vcpu_id)
192192
{
193-
return g_strdup_printf("/dev/hax_vm%02d/vcpu%02d", vm_id, vcpu_id);
193+
return g_strdup_printf("\\\\.\\hax_vm%02d_vcpu%02d", vm_id, vcpu_id);
194194
}
195195

196196
int hax_host_create_vm(struct hax_state *hax, int *vmid)

tests/qtest/numa-test.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ static void pc_hmat_off_cfg(const void *data)
455455
cli = make_cli(data, "-nodefaults --preconfig "
456456
"-smp 2,sockets=2 "
457457
"-m 128M,slots=2,maxmem=1G "
458-
"-object memory-backend-ram,size=64M,id=m0 "
458+
"-object memory-backend-ram,size=64M,id=m0,prealloc=y "
459459
"-object memory-backend-ram,size=64M,id=m1 "
460460
"-numa node,nodeid=0,memdev=m0");
461461
qs = qtest_init(cli);

0 commit comments

Comments
 (0)