From: Volker RĂ¼melin Date: Sun, 22 Mar 2020 21:02:11 +0000 (+0100) Subject: hax: Windows doesn't like posix device names X-Git-Tag: v5.0.0-rc3~4^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9f5a0664187e9411c5c6b7dbd21a1f50922cf698;p=thirdparty%2Fqemu.git hax: Windows doesn't like posix device names Patch acb9f95a7c "i386: Fix GCC warning with snprintf when HAX is enabled" replaced Windows device names with posix device names. Revert this. Fixes: acb9f95a7c "i386: Fix GCC warning with snprintf when HAX is enabled" Signed-off-by: Volker RĂ¼melin Message-Id: <20200322210211.29603-1-vr_qemu@t-online.de> Signed-off-by: Paolo Bonzini --- diff --git a/target/i386/hax-windows.c b/target/i386/hax-windows.c index 0ba488c468a..863c2bcc192 100644 --- a/target/i386/hax-windows.c +++ b/target/i386/hax-windows.c @@ -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)