Skip to content

Commit 9f5a066

Browse files
Volker Rümelinbonzini
authored andcommitted
hax: Windows doesn't like posix device names
Patch acb9f95 "i386: Fix GCC warning with snprintf when HAX is enabled" replaced Windows device names with posix device names. Revert this. Fixes: acb9f95 "i386: Fix GCC warning with snprintf when HAX is enabled" Signed-off-by: Volker Rümelin <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
1 parent e43651f commit 9f5a066

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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)

0 commit comments

Comments
 (0)