From nobody Mon May 6 10:46:59 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1584910985; cv=none; d=zohomail.com; s=zohoarc; b=nRMTBkwLjsQSmEB/ODp74UKw1PMdJ8P9Wy1+jBxwV5u6dll0n82fgMSUM251LsvkwIDc3EKMX4UBX7Kb5Z329Pq9QyZKYg+W9ObfwerBimbV8yP7QvVCJKUbArb4xK41PzUGboPdtvuTTS1kBtbtgjuAkzMQXK+cjZCLvnV5CpE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1584910985; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=d9uIavi440sgLeK8Fk9xiuWJZf4VgXJ9jB6083Mf8eI=; b=ZvSoZTGg2HcW+Tk6EFQOfTScAJr3l4trxqIaRkO6Ww15vsYwkn8lkRc3tGYkBTowS59lorVC3IawlEf9TV1BYBn0erqfy1n3tkqs5JLuDvdUELzgLEGomQXYPZEHrj4bCtkKBV0qM2AAFQ943w5zQiPKX7XCZa4oaWgCSIAKJYI= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1584910985221552.6507722354133; Sun, 22 Mar 2020 14:03:05 -0700 (PDT) Received: from localhost ([::1]:49788 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jG7kN-0005Tp-A4 for importer@patchew.org; Sun, 22 Mar 2020 17:03:03 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41433) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jG7jb-0004eW-Qv for qemu-devel@nongnu.org; Sun, 22 Mar 2020 17:02:16 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jG7ja-0003rM-Qw for qemu-devel@nongnu.org; Sun, 22 Mar 2020 17:02:15 -0400 Received: from mailout08.t-online.de ([194.25.134.20]:34968) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jG7ja-0003qt-Kt for qemu-devel@nongnu.org; Sun, 22 Mar 2020 17:02:14 -0400 Received: from fwd15.aul.t-online.de (fwd15.aul.t-online.de [172.20.27.63]) by mailout08.t-online.de (Postfix) with SMTP id 74AE941A68D6; Sun, 22 Mar 2020 22:02:12 +0100 (CET) Received: from linpower.localnet (ZBnKXaZlohtCjFE4z5ob8x-LI+CRz6QncVCrDsm5BWTE3RbVZg35qJjPi4Sl6GEQtN@[93.236.151.78]) by fwd15.t-online.de with (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384 encrypted) esmtp id 1jG7jY-1sZ5No0; Sun, 22 Mar 2020 22:02:12 +0100 Received: by linpower.localnet (Postfix, from userid 1000) id 994DF21157A; Sun, 22 Mar 2020 22:02:11 +0100 (CET) From: =?UTF-8?q?Volker=20R=C3=BCmelin?= To: Paolo Bonzini , Wenchao Wang , Colin Xu Subject: [PATCH] hax: Windows doesn't like posix device names Date: Sun, 22 Mar 2020 22:02:11 +0100 Message-Id: <20200322210211.29603-1-vr_qemu@t-online.de> X-Mailer: git-send-email 2.16.4 MIME-Version: 1.0 X-ID: ZBnKXaZlohtCjFE4z5ob8x-LI+CRz6QncVCrDsm5BWTE3RbVZg35qJjPi4Sl6GEQtN X-TOI-MSGID: 845b038a-dce3-434c-a724-22cfde7aa1da Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 194.25.134.20 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Julio Faracco , QEMU Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" 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=C3=BCmelin --- target/i386/hax-windows.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/i386/hax-windows.c b/target/i386/hax-windows.c index 0ba488c468..863c2bcc19 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) =20 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); } =20 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); } =20 int hax_host_create_vm(struct hax_state *hax, int *vmid) --=20 2.16.4