From nobody Mon Nov 23 04:52:43 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1791484935; cv=none; d=zohomail.com; s=zohoarc; b=beDb0neX15kyCaESwyVApomz9zO/vMpPcVQRg5d2ahKY/RMhbK+xX6N/JPxR06IsyNhjsLZDwI2x+nEV/zLFkh5RkvQFTSMknnH8Y38r2SP9EQNNZowuRiWzczZ+jTVODpvpQg1VSDXeo+Ks7db7EgzHK61lM3oQ2TXFao5jtx4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791484935; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=WCspp2e/GZmkeo9++AMsuDc1oZL/s0taAPRrDEZnR80=; b=Lb2nbrFTgsuOZYcIZSagAg1w9iunDfgm59BLEZ8IJleZIB5k6JTJSxguX5GrjKTeXEixTOZAyJ2mmxQzwP7eqAettbjddqIyXHw5wYK0lsoj6lkKZZW4cP6I6XnaugL0k+O6Kx/Olc/LMcEuDgnuLCl5OW8HtXL6Mt0UbvfIBfc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1791484935873991.6236324917902; Thu, 8 Oct 2026 11:42:15 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xEt3g-0005IC-AB; Thu, 08 Oct 2026 14:41:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEt3e-0005Hd-5G for qemu-devel@nongnu.org; Thu, 08 Oct 2026 14:41:34 -0400 Received: from mail-dl1-x1235.google.com ([2607:f8b0:4864:20::1235]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xEt3c-0004kH-NQ for qemu-devel@nongnu.org; Thu, 08 Oct 2026 14:41:33 -0400 Received: by mail-dl1-x1235.google.com with SMTP id a92af1059eb24-16079d54c17so2772674c88.0 for ; Thu, 08 Oct 2026 11:41:32 -0700 (PDT) Received: from DESKTOP-Q716RM7 ([103.94.185.75]) by smtp.googlemail.com with ESMTPSA id a92af1059eb24-169a442ac67sm259515c88.18.2026.10.08.11.41.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2026 11:41:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791484891; x=1792089691; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=WCspp2e/GZmkeo9++AMsuDc1oZL/s0taAPRrDEZnR80=; b=hVu7l2sQUqUBi2hEXq7U7kAddI6TjvbcmWEJXjN+nAyMAV45k82hxQPYQhsHpkU32b 30NMzefuCrgnIxq+lARswnGyNK151QlOmGPklP3uKhm2ZGC2+XJ3xWCB67P9Dw53C2ZL r+SxT5pOaltAmGHYUziUNhtYK4Vn1ZX6XOQgcK+1OkQcTHC0DxZ6uWAIT1o+BaDNqqdq 4Zl3S7wLjlcIRc/AV6brx2ZdKXvHX7yPUvHjXb6ME/cx/ErS7+EJL5esnDzdGFVtjqhe Wvb1qglB2TCIwlLyNL31TUIz/r2l+O5x2te2m1qAIPyXHz1JMneSPDPxOUglPf3A/0nB ZxXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791484891; x=1792089691; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=WCspp2e/GZmkeo9++AMsuDc1oZL/s0taAPRrDEZnR80=; b=TrHP2sGNT8gljB5o009EsrwpiP504IWBZhs//ioudSOc/+X3kky7aGv06xGGwK72DR tymfUM2D9usnSS1Sc/MpfY7swQN+tf7hYzASDecJ/OoL7/pvqhh092Xwo8gKIJJU4VTA 7ER9Jqo82w+hpklw8xD1oA73ukurxyEV1BE5K2dzOH90IIrhgqinvnqUtnCHIO+8G6N3 ZAjNk8i4zbfBmDYhX82u+esOyzTAnTdIdhIWa0YU9C+e5kZwyr+nmMKdFGtJPMC6NLSO aYsqjmpCqsUTq/4hKvwfSbDsQgTsTe39smzGRILKv6iH8cIAd1hMJvTpD1LqoaVqHXFE S8ow== X-Gm-Message-State: AFuF++nrC5alS4bgWantdSiNYZRIjkXrUfO4REctzP2B7Fe4oQw9bSyI I6WLJ8U6vdeLkBdAVo0fX6HeJmq60dgXTBHYMziUNGeNywLkCoiAa44QJ6vuVOp0 X-Gm-Gg: AYBFou0Exljo2n9ADHD+ZuqqS9rj3p9KpcV681/GWpEWTUfHbZsCxJKRdVoa/rPHAWp dy0IR3c7pcc0cpxdQWTMlVzI9aBfpNjy/0g3XEG2j8MuUoOm9ZkA2uxzrRa/2pf8GcnwIZy6pw/ e7FiJsVsCmQxQQ/8+PjKCtAqTS5v6sJy07SUGRPvePY2ZREb9RhrCyarj99X04w5pgb7oHGZtKD 6leIP6K2vjKxsALpns0jKpgFBnKR8jpQqKhhcfPKYZYf6x1p/WfzsQ6dxBl/Y9xUt8iECtuJu2j FoKW0nJ/H2fwUtugWaW7eC0Xyqxz1G5FZVj6BSpurABeoNOyi6oLFJRCQpy0Z+TCaBvGmYfUVK5 lzkad3tD9JNONhwy9xQCoXm3KwmQXd8TPKVJb2ANAqk8N9+6gb6BaeMZ3JC4Va1K7k6Rho8mfE/ jJ+sLsrgf3mZIzH8PSdRluLEfv4/JJMf72STFa7sd8cuMxosOOm6ItOn6Q2wgn7QTR3F/AudGnx q38gqibmC4Sr96FJw== X-Received: by 2002:a05:7022:1501:b0:149:50cb:216f with SMTP id a92af1059eb24-162088098f5mr7635457c88.33.1791484890935; Thu, 08 Oct 2026 11:41:30 -0700 (PDT) From: Yonggang Luo To: qemu-devel@nongnu.org Cc: Philippe Mathieu-Daude , Pierrick Bouvier , Laurent Vivier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Paolo Bonzini , Fabiano Rosas Subject: [PATCH 1/2] tests/qtest: fix PXE test build on MinGW Date: Fri, 9 Oct 2026 02:41:18 +0800 Message-ID: <20261008184119.142-2-luoyonggang@gmail.com> X-Mailer: git-send-email 2.55.0.windows.3 In-Reply-To: <20261008184119.142-1-luoyonggang@gmail.com> References: <20261008184119.142-1-luoyonggang@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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=lists1p.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::1235; envelope-from=luoyonggang@gmail.com; helo=mail-dl1-x1235.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1791484937301158500 Content-Type: text/plain; charset="utf-8" Replace the GNU-specific memmem() call with a bounded memcmp() search. Preserve binary BIOS scanning across embedded NUL bytes without relying on a function unavailable on MinGW. Signed-off-by: Yonggang Luo Reviewed-by: Pierrick Bouvier Tested-by: Eric Farman --- tests/qtest/pxe-test.c | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/tests/qtest/pxe-test.c b/tests/qtest/pxe-test.c index 61c92a2df45..37d74d7ee09 100644 --- a/tests/qtest/pxe-test.c +++ b/tests/qtest/pxe-test.c @@ -111,10 +111,18 @@ static bool s390_bios_has_string(const char *needle) { const char *contents; gsize len; - bool found; + size_t needle_len =3D strlen(needle); + bool found =3D false; =20 contents =3D s390_bios_load(&len); - found =3D memmem(contents, len, needle, strlen(needle)) !=3D NULL; + if (needle_len <=3D len) { + for (gsize i =3D 0; i <=3D len - needle_len; i++) { + if (memcmp(contents + i, needle, needle_len) =3D=3D 0) { + found =3D true; + break; + } + } + } =20 g_test_message("\"%s\" %s in bios", needle, found ? "found" : "not fou= nd"); return found; --=20 2.55.0.windows.3 From nobody Mon Nov 23 04:52:43 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; 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; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1791484935; cv=none; d=zohomail.com; s=zohoarc; b=e5IcUUGCh6NT00ttOyW5dl6wUsF4LUlW0weI4Uj/AEG7Jcr4+8+tI0MlNcCUMqGSYujQMzAmOIqVk7fI0zIDQh8uvPUQnMkcDFbtZoro+iXR7uqnsV7b0ElZm6/yeU/mL2LXBGrhSnaDA090P0d2+fUrXFXvhTnHv78+Bdkh+FQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1791484935; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=Dy/SBey8Ie5e9tFCrYEZkW32VFY0EP87nzoMZVgaQys=; b=B1fHUJWGJMu4cskHMK2CLncp++RtQiEjHgVaY8kGzCoRVtK7b0nU9nGbj6PIioMiiIccgqLCt0/H85O1oWqWpgI4CfPa0S8VsMv88QEcCi0EbECnMd3mPvrupaYaL48FLnHJAFaF8lj1WmdcGBHG9ssjtw76aF8sNdhyXPD81Zk= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; 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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1791484935500910.5879870142061; Thu, 8 Oct 2026 11:42:15 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xEt3j-0005Iw-AR; Thu, 08 Oct 2026 14:41:39 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1xEt3g-0005IP-SU for qemu-devel@nongnu.org; Thu, 08 Oct 2026 14:41:36 -0400 Received: from mail-dl1-x122c.google.com ([2607:f8b0:4864:20::122c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xEt3f-0004kY-Eh for qemu-devel@nongnu.org; Thu, 08 Oct 2026 14:41:36 -0400 Received: by mail-dl1-x122c.google.com with SMTP id a92af1059eb24-16079d54c17so2772766c88.0 for ; Thu, 08 Oct 2026 11:41:35 -0700 (PDT) Received: from DESKTOP-Q716RM7 ([103.94.185.75]) by smtp.googlemail.com with ESMTPSA id a92af1059eb24-169a442ac67sm259515c88.18.2026.10.08.11.41.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Oct 2026 11:41:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1791484894; x=1792089694; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=Dy/SBey8Ie5e9tFCrYEZkW32VFY0EP87nzoMZVgaQys=; b=lZUAOJ96MzPaPMcjl3IjRHeQgTND3HDV7qscHeUxLSvZBxIVg/8aMxY8qydvfoSS77 feTK1OMW8AFLtpT4ELTo44iIBhqF606wuiXk0SWCmwBIXjMOgMuiCVszvWfJQLsBBr74 /p96iuMMYV9HsVbLlpuxX+orWap3eVziF6nrvP+A9o4M0nOwYY9BSwVchR1fln2RTe3o GVqklDL1TWfTkkS90Mv3XiJsnXdpLCa9VDBQadHlkzUDoC24LeSr91tzbG9UR65giiOJ 3ori6RgzSBaqY3gDOndvOLYTTqtYVqPJic2Z3RBwKzXZhUtbDMpWWJfN+VEL8lv/Oy+j n4ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1791484894; x=1792089694; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=Dy/SBey8Ie5e9tFCrYEZkW32VFY0EP87nzoMZVgaQys=; b=VfeoP1+QmGUl5QdX0tGVBZwY+ydePnkNW8ueR2i4rhExHJNTSxvPAg1rtcBMP2KibI MWu+2BttMRFtC8N6GQfiDJsDbKgxTllYz83o1wlLgm63d72Hbm/cu9o0lBmKkx/3gJAS 8OZSIUJRD1ccdA83n/xKI+JeZBgWp0URqlPPfbR9OOFuXy9BPrxqtgbpSAk39FVrQ60+ Mhi00lNVD2dALKips88vd3XXMJqhLDHCah7x2qf3cRuVSy1MUCuJkIEdlrMsqpWQjWnp vUUbij7m8pMPvWD6s4IAsYp014BMKnG21lT1DXyfYxlzyiqWkqzN9QmGk9QvG1WSiikG 7Img== X-Gm-Message-State: AFuF++n0bVXVCup9UWBmfPTBZMErdQVAu9fRcgS91tTaW4KsV/FM3j5m 8H7WRdobT9fCLCb8HaPEOWuM7MTr2oafb9SLsb0voSlV7cwaPKzhAi/x+K8u70eB X-Gm-Gg: AYBFou313dT0idxdYiBPdr6bVED+kRGubWTgGkm8BEyo5c0XN3bZrSjCKi01hcYgy/b Snk6rEn+CuQq7uJdo5PUh4S9GO5yFrnKaD55nfHD0Y/xDPZ8EJ8d1r/4FnEkCiDDfSFAK9dxR+H Uln73ZvtWqmkIsnbxyZQqAR8guDgmX1xNACmMgDJ4UGxcC76XrJnCDv/bRonPNWSBhcJtLPh1HN kSjjB30TnOCkd/7sBhEccuQdwjYGy6erO2zZOm7smtL04C5raXWQ2OzmNI4YyDwsuVLwXBWnRhS 6JmAaLpIE3T90lQqIVlvFjEZIm+wot6CIcFKt/ys4S4JLomS+y5Krb2sEVvy3PDWz9JBWpWFWrw pI/xP1cWI0mXVChkY/lce7dpizUPjPpfQkpywX4aK23P+9aH7al6eQd/FzZZGbeYPFeHIKwKHxK Tm5wllxvgcCKjxVguRr+UOT/oiORphpKGlpBauOxh2Ma/ZMC8UxhJOmwexrdqMEeNhfuDmq71HC bf78FUi64HyjNDMtwPICsa9vF90 X-Received: by 2002:a05:7022:b058:20b0:166:af48:a2ba with SMTP id a92af1059eb24-166af48a334mr3058016c88.0.1791484893951; Thu, 08 Oct 2026 11:41:33 -0700 (PDT) From: Yonggang Luo To: qemu-devel@nongnu.org Cc: Philippe Mathieu-Daude , Pierrick Bouvier , Laurent Vivier , =?UTF-8?q?Alex=20Benn=C3=A9e?= , Paolo Bonzini , Fabiano Rosas Subject: [PATCH 2/2] gitlab-ci: enable slirp in the Windows cross-build Date: Fri, 9 Oct 2026 02:41:19 +0800 Message-ID: <20261008184119.142-3-luoyonggang@gmail.com> X-Mailer: git-send-email 2.55.0.windows.3 In-Reply-To: <20261008184119.142-1-luoyonggang@gmail.com> References: <20261008184119.142-1-luoyonggang@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable 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=lists1p.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::122c; envelope-from=luoyonggang@gmail.com; helo=mail-dl1-x122c.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1791484937300158500 Content-Type: text/plain; charset="utf-8" Require libslirp so check-build compiles the PXE test and catches MinGW portability failures instead of omitting the test. Signed-off-by: Yonggang Luo Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Pierrick Bouvier Tested-by: Eric Farman --- .gitlab-ci.d/crossbuilds.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.d/crossbuilds.yml b/.gitlab-ci.d/crossbuilds.yml index a823aaaa218..d5dc4946e92 100644 --- a/.gitlab-ci.d/crossbuilds.yml +++ b/.gitlab-ci.d/crossbuilds.yml @@ -95,7 +95,7 @@ cross-win64-system: - job: win64-fedora-cross-container variables: IMAGE: fedora-win64-cross - EXTRA_CONFIGURE_OPTS: --enable-fdt=3Dinternal --disable-plugins + EXTRA_CONFIGURE_OPTS: --enable-fdt=3Dinternal --disable-plugins --enab= le-slirp CROSS_SKIP_TARGETS: alpha-softmmu avr-softmmu hppa-softmmu m68k-softmmu microblaze-softmmu or1k-softmmu rx-softmmu sh4eb-softmmu sparc64-soft= mmu --=20 2.55.0.windows.3