From nobody Mon Feb 9 15:48:58 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=reject dis=none) header.from=zamaudio.com ARC-Seal: i=1; a=rsa-sha256; t=1770530459; cv=none; d=zohomail.com; s=zohoarc; b=PFqf99MKUJdQhdg3ZMxlDZ7NfRu8xGZFIKaxYZqhksAcHZ7mBpxWxjJUo0RYtD3iPLVnpowMGtY0dVshFx5z/r3FTw2P8nPsZX0TK81Abxi63AB0Vl6N/7MT1MHlkvx00WcH421hFrvDg26uIrKEprFdm3DGkiVAkalDiHlTtls= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770530459; h=Content-Type: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:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=OZJgORl8cEThdrHDzYfVgvq5hw8RqcPt05THMARuhgM=; b=BYCQ96moYQRouc8i9j5sMVKYvrpzmx1HRGVtebs8dNyMkIBySOxVh7gEGTQGEoAz7kBzQx2yVPnipGOZwz1eYUJBhg4bES4Guh6kuRf/yLmXzlf7lsZ6sZkGIQn0XrLBcv/wZNWMIJAPdMBhZb076qo6VwoeNEZ2BSkUQ5uW+eM= 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=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1770530459594974.7280239665707; Sat, 7 Feb 2026 22:00:59 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1voxpa-0000Ok-97; Sun, 08 Feb 2026 00:59:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1voxpP-0000MC-GJ; Sun, 08 Feb 2026 00:59:27 -0500 Received: from mail-4317.protonmail.ch ([185.70.43.17]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1voxpO-0007TY-0N; Sun, 08 Feb 2026 00:59:27 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zamaudio.com; s=protonmail3; t=1770530362; x=1770789562; bh=OZJgORl8cEThdrHDzYfVgvq5hw8RqcPt05THMARuhgM=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=o7Bhyt1qStxZwM6tVVFffVMp4K8tsRTzkDBaXWA4b02leCT9iVo2a4TkslUfbhwDU fxd8MH5HHEgjhNm6P60UHHWCdBfDkIJsSf6JmO5sstHLPjOEAKdFUoS4DJwpfYfTM8 Al98j3cwkT3uZBmDCRIHqzynmaonBPy1vjW/lDHFm3CXiEfJFEoC5hN5eNTYMmMqGk kbh3MHsYj7YQ8QqQRbZ/9PzFaSs/ScsTcmeHJFoSHkNf/7582UswbFjLz19ih3bTq6 Vpz/zmXinqV6OmX/pM7x/u/WYRZvEf4ucmq166yORU6eWkbixtRs0EHprnaMHfgSRh wWcAHqxkxR8mw== Date: Sun, 08 Feb 2026 05:59:19 +0000 To: bug-hurd@gnu.org From: Damien Zammit Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, manolodemedici@gmail.com, pbonzini@redhat.com, stefanb@linux.ibm.com, peter.maydell@linaro.org, kwolf@redhat.com, berrange@redhat.com, eblake@redhat.com, bugaevc@gmail.com Subject: [PATCH v5 1/5 qemu] Include new arbitrary limits if not already defined Message-ID: <20260208055858.2166524-2-damien@zamaudio.com> In-Reply-To: <20260208055858.2166524-1-damien@zamaudio.com> References: <20260208055858.2166524-1-damien@zamaudio.com> Feedback-ID: 43209410:user:proton X-Pm-Message-ID: 69418220e619fe54236ab210324a8c3fcd403440 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=lists.gnu.org; Received-SPF: pass client-ip=185.70.43.17; envelope-from=damien@zamaudio.com; helo=mail-4317.protonmail.ch X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable 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 @zamaudio.com) X-ZM-MESSAGEID: 1770530461230154100 Content-Type: text/plain; charset="utf-8" From: Manolo de Medici Although GNU/Hurd supports unlimited path lengths only bounded by available memory, for now we can use an arbitrary limit on PATH_MAX that matches what POSIX requires. We don't have bandwidth to fix this properly right now. Author: Manolo de Medici Signed-off-by: Damien Zammit --- include/qemu/osdep.h | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/include/qemu/osdep.h b/include/qemu/osdep.h index b384b5b506..2e67d75042 100644 --- a/include/qemu/osdep.h +++ b/include/qemu/osdep.h @@ -385,6 +385,17 @@ void QEMU_ERROR("code path is reachable") #define TIME_MAX TYPE_MAXIMUM(time_t) #endif =20 +#ifndef PATH_MAX +#define PATH_MAX 1024 +#endif + +/* + * Use the same value as Linux for now. + */ +#ifndef IOV_MAX +#define IOV_MAX 1024 +#endif + /* Mac OSX has a bug that incorrectly defines SIZE_MAX with * the wrong type. Our replacement isn't usable in preprocessor * expressions, but it is sufficient for our needs. */ @@ -661,10 +672,6 @@ struct iovec { void *iov_base; size_t iov_len; }; -/* - * Use the same value as Linux for now. - */ -#define IOV_MAX 1024 =20 ssize_t readv(int fd, const struct iovec *iov, int iov_cnt); ssize_t writev(int fd, const struct iovec *iov, int iov_cnt); --=20 2.51.0 From nobody Mon Feb 9 15:48:58 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=reject dis=none) header.from=zamaudio.com ARC-Seal: i=1; a=rsa-sha256; t=1770530476; cv=none; d=zohomail.com; s=zohoarc; b=FobNrDAxTLZbNyDHJG706yQBrT+kVhgahUN6TX+6GwkLLaiiYHbKvvTrJH3hq0+2bq532bQZs83QDHCwqziamcVOZIDvYL/c9kQJ7jwB/r0UbJZddyT0BKGNrwYoiCODi/cOcEf/GzBoe+TdjhPSv783QQS8ztoNyJBDW9Q6R2I= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770530476; h=Content-Type: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:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=5U0l3wVgWK9kNowZyYZcgvlLBninOUWPPo60jfcc9Hc=; b=gClUAWB5OnU7Xt+m2kPhrvpMCoEjmAu7VleyZeHwqeMMrG72uQeY1jtsWi+aTCc5fEd7ugk2UdJi003eUjnkuVDZX2UDpKfX5fepLrjyEeKwF8ftl5I7BUWkPR2FwaBCcgFJb63i7q6ZPljLccaGWGtSiizVijwc+fIMf+ikQ24= 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=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1770530475548171.6641467311391; Sat, 7 Feb 2026 22:01:15 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1voxpa-0000P7-NR; Sun, 08 Feb 2026 00:59:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1voxpV-0000NY-6a for qemu-devel@nongnu.org; Sun, 08 Feb 2026 00:59:33 -0500 Received: from mail-244119.protonmail.ch ([109.224.244.119]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1voxpT-0007UH-IB for qemu-devel@nongnu.org; Sun, 08 Feb 2026 00:59:32 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zamaudio.com; s=protonmail3; t=1770530367; x=1770789567; bh=5U0l3wVgWK9kNowZyYZcgvlLBninOUWPPo60jfcc9Hc=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=LnbX9+mS7ecERMFcTXRyip7JSRx+9K1RHp9B8vohJdOrCMFewXX4PFlkycalcKjvl vkIsems5AqtebLmil33B2hG0PrEdgV51Ctbc/lbq1gaKZLgCxoM9AgXiRvaelX5NkO 17RhLEaDs+hohPoLhWVuAN/ph/Gcssg4AU2OLqdd2jrRkWjYZEzVbSpwmTY9SiuudV TOWsAkqXKoRcIymtXx+eGC3cmjYgTNjwPGEFsSC0YQ/t5ErioDsuM59wSzzKDo2q9Q 1IcWH8Tph2BIIeg2pqJcZFE5x/y5o+VKV7x199XXLP5jSZPsoVu+L9ZcYCu9OPoGVx C/HeAUp/974Gg== Date: Sun, 08 Feb 2026 05:59:25 +0000 To: bug-hurd@gnu.org From: Damien Zammit Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, manolodemedici@gmail.com, pbonzini@redhat.com, stefanb@linux.ibm.com, peter.maydell@linaro.org, kwolf@redhat.com, berrange@redhat.com, eblake@redhat.com, bugaevc@gmail.com Subject: [PATCH v5 2/5 qemu] Add GNU/Hurd host_os=gnu Message-ID: <20260208055858.2166524-3-damien@zamaudio.com> In-Reply-To: <20260208055858.2166524-1-damien@zamaudio.com> References: <20260208055858.2166524-1-damien@zamaudio.com> Feedback-ID: 43209410:user:proton X-Pm-Message-ID: c14d17e0ecbdc099b1b659c4c8f9349a095ac505 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=lists.gnu.org; Received-SPF: pass client-ip=109.224.244.119; envelope-from=damien@zamaudio.com; helo=mail-244119.protonmail.ch X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-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 @zamaudio.com) X-ZM-MESSAGEID: 1770530477596154100 Content-Type: text/plain; charset="utf-8" Signed-off-by: Damien Zammit --- configure | 2 ++ 1 file changed, 2 insertions(+) diff --git a/configure b/configure index 4b61fd3bbf..fae4d06352 100755 --- a/configure +++ b/configure @@ -372,6 +372,8 @@ elif check_define __APPLE__; then elif check_define EMSCRIPTEN ; then host_os=3Demscripten cross_compile=3D"yes" +elif check_define __GNU__; then + host_os=3Dgnu else # This is a fatal error, but don't report it yet, because we # might be going to just print the --help text, or it might --=20 2.51.0 From nobody Mon Feb 9 15:48:58 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=reject dis=none) header.from=zamaudio.com ARC-Seal: i=1; a=rsa-sha256; t=1770530456; cv=none; d=zohomail.com; s=zohoarc; b=dNaMcA/tvqjPlqwB6MQzy5MOnRwymw+A8EHMrB++Db2DSm7r9nVeO5qOoB192wKRASIIi3lkkR+NkzJSYUcjMhWcKibrrcscCMrwjhs8sl6hV+n8sAnX4KWgt/jRrT2bxn08ddNvxDO6/7bFsqiI/CoxXJqrGZjIeSc6X8ImNNE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770530456; h=Content-Type: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:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=TwyJA0ynE+zwbWVHEw2NWdp39rt/RvC9XMk5dogbfeo=; b=Ys8lmtXKZ6Wu4Qz3UZDZQd/AeZY9ian/JPOP7J586gwhnAKBAJz+pWhmzcNfJAdlmcksfWn+Rnbn/9FcxLxiQ6OyKjum7OfJUTGl7CUoFNvHUpkJjRSBcX/F+hd+FdE6p1m0SKIzWX3HSgkNPzNLmXV02LotEQpkOuFi5fXcaTg= 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=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1770530456198451.4462734066615; Sat, 7 Feb 2026 22:00:56 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1voxpx-0000QI-7R; Sun, 08 Feb 2026 01:00:01 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1voxpc-0000Pl-Cx for qemu-devel@nongnu.org; Sun, 08 Feb 2026 00:59:41 -0500 Received: from mail-24420.protonmail.ch ([109.224.244.20]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1voxpa-0007Ut-4P for qemu-devel@nongnu.org; Sun, 08 Feb 2026 00:59:39 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zamaudio.com; s=protonmail3; t=1770530375; x=1770789575; bh=TwyJA0ynE+zwbWVHEw2NWdp39rt/RvC9XMk5dogbfeo=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=0l5NI93ycNRXDftoT8cADAEb1r4a1Z0ZxOcnpoQNpA2q5hUUhS2lYd2CU0/hH4giG 6ZPk1Pry8SPqvF68ia9Xq+Aa+AIhuGoaZiRXvQpPNSrBtcZKginwUzMIjyvCV/rope ffP6BMysYIwryJWb07k+w3fm+muR9rN1CQgN+x6y3b0csjGKmZXIC5sBqi0RBq5YwL Ahneth0icKa735zrWCKjVpRcFL1XvaPPgfJD+G6iQIy7hz4SFMcqCMPWuwkWNbg0l7 ALjFu9e/8saMyAa86GvAwGR2Twc2kiJelx1/2V0oNKkjPiM1iGXPOyGYOdzltzu16P xAgRO12EUzObQ== Date: Sun, 08 Feb 2026 05:59:32 +0000 To: bug-hurd@gnu.org From: Damien Zammit Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, manolodemedici@gmail.com, pbonzini@redhat.com, stefanb@linux.ibm.com, peter.maydell@linaro.org, kwolf@redhat.com, berrange@redhat.com, eblake@redhat.com, bugaevc@gmail.com Subject: [PATCH v5 3/5 qemu] tpm: Add conditional to not compile ioctls on GNU/Hurd Message-ID: <20260208055858.2166524-4-damien@zamaudio.com> In-Reply-To: <20260208055858.2166524-1-damien@zamaudio.com> References: <20260208055858.2166524-1-damien@zamaudio.com> Feedback-ID: 43209410:user:proton X-Pm-Message-ID: dad7c3b1e760d01f09eefb9f58d725b9d63b73c9 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=lists.gnu.org; Received-SPF: pass client-ip=109.224.244.20; envelope-from=damien@zamaudio.com; helo=mail-24420.protonmail.ch X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-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 @zamaudio.com) X-ZM-MESSAGEID: 1770530457575154100 Content-Type: text/plain; charset="utf-8" The Hurd currently doesn't have any TPM driver, compilation fails for missing _IOT__IOTBASE_* symbols unless these are left undefined. Signed-off-by: Damien Zammit Signed-off-by: Manolo de Medici Reviewed-by: Stefan Berger --- backends/tpm/tpm_ioctl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/tpm/tpm_ioctl.h b/backends/tpm/tpm_ioctl.h index ee2dd15d35..e466311455 100644 --- a/backends/tpm/tpm_ioctl.h +++ b/backends/tpm/tpm_ioctl.h @@ -285,7 +285,7 @@ typedef struct ptm_lockstorage ptm_lockstorage; #define PTM_CAP_SEND_COMMAND_HEADER (1 << 15) #define PTM_CAP_LOCK_STORAGE (1 << 16) =20 -#ifndef _WIN32 +#if !defined(_WIN32) && !defined(__GNU__) enum { PTM_GET_CAPABILITY =3D _IOR('P', 0, ptm_cap), PTM_INIT =3D _IOWR('P', 1, ptm_init), --=20 2.51.0 From nobody Mon Feb 9 15:48:58 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=reject dis=none) header.from=zamaudio.com ARC-Seal: i=1; a=rsa-sha256; t=1770530464; cv=none; d=zohomail.com; s=zohoarc; b=EDRZWT+HSydAJ8JUD4KZJhCCx3dXeGAiXYuu84K+FqE0JAXrVhcpoTNuQaV0957qVemkJlX7rTnXj+ygw5/0F++8RsW+6IG4RNk1oRD4btmuBp2ABsNRNzzSI8Hz+ldc2t3JOdUNzHZKGY21otVXhceBmQ/iKOGHNIzwXCE50rw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770530464; h=Content-Type: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:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=v+3r1FrmqevCgJnc8NlPIs5RUlRvtA5aa2esuxBc84k=; b=oI9y42lJNO0J1exFFGsWg+Eusy6O/u6W4wUjdQLhfOKHVQD5lDPBxFKoMVCm0XPVF5wtKv4u6nBRi34Are8rGzSJver+qTwezz4Tf36SzytpPAJzR4npEJ52Uaaes0c3+0oI7bj7Y07fCbjCpk/jYIKY8L+vjxovEHVb4SIdXaI= 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=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1770530464699745.6230311539288; Sat, 7 Feb 2026 22:01:04 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1voxqR-0000n3-Hh; Sun, 08 Feb 2026 01:00:31 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1voxpm-0000R6-Ip; Sun, 08 Feb 2026 00:59:55 -0500 Received: from mail-4317.protonmail.ch ([185.70.43.17]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1voxph-0007VT-Ee; Sun, 08 Feb 2026 00:59:46 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zamaudio.com; s=protonmail3; t=1770530382; x=1770789582; bh=v+3r1FrmqevCgJnc8NlPIs5RUlRvtA5aa2esuxBc84k=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=YoQvYfPHDVmnDqK43cEMgWal0gvDyYDSayrh9q4X9ufiVFDx/E0UBRWvk0sPzfIIy dMq7lkP7gsaqdK7Zc5SnphlNsjyDiXyxrCCuIoGEdzgmcOjQJzalqev5Pe5H5LharB P7qy3oERveQbhIjpK92AtF9EkySQpdoreeI+OaPVurrBnWTIarM4scfdaL1v9uD1a0 g9c3yO5uYqV5dgK0YSIWTbE2UwEoeqHqIdG6T2gwgNHj3cY5B8jx7pNcmoTTp6oLfD RoE5+AcbGE7pp4PciPbzDn4xe4EIy1emwtGnFEN+7wMBxRStBrT7XnQKdgI6BzODEU zSzjU0WgF3n7A== Date: Sun, 08 Feb 2026 05:59:38 +0000 To: bug-hurd@gnu.org From: Damien Zammit Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, manolodemedici@gmail.com, pbonzini@redhat.com, stefanb@linux.ibm.com, peter.maydell@linaro.org, kwolf@redhat.com, berrange@redhat.com, eblake@redhat.com, bugaevc@gmail.com Subject: [PATCH v5 4/5 qemu] block/file-posix: Clean up sys/ioctl import Message-ID: <20260208055858.2166524-5-damien@zamaudio.com> In-Reply-To: <20260208055858.2166524-1-damien@zamaudio.com> References: <20260208055858.2166524-1-damien@zamaudio.com> Feedback-ID: 43209410:user:proton X-Pm-Message-ID: 8ddd599e21def8fd100c0070f1b7f9b4e473317b 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=lists.gnu.org; Received-SPF: pass client-ip=185.70.43.17; envelope-from=damien@zamaudio.com; helo=mail-4317.protonmail.ch X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-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 @zamaudio.com) X-ZM-MESSAGEID: 1770530467126154100 Content-Type: text/plain; charset="utf-8" Since all platforms except sun include this header, clean up the ifdefs. Signed-off-by: Damien Zammit --- block/file-posix.c | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/block/file-posix.c b/block/file-posix.c index 6265d2e248..8a3ba5eecb 100644 --- a/block/file-posix.c +++ b/block/file-posix.c @@ -43,9 +43,11 @@ #include "scsi/constants.h" #include "scsi/utils.h" =20 -#if defined(__APPLE__) && (__MACH__) +#ifndef __sun__ #include -#if defined(HAVE_HOST_BLOCK_DEVICE) +#endif + +#if defined(__APPLE__) && (__MACH__) && defined(HAVE_HOST_BLOCK_DEVICE) #include #include #include @@ -57,7 +59,6 @@ //#include #include #include -#endif /* defined(HAVE_HOST_BLOCK_DEVICE) */ #endif =20 #ifdef __sun__ @@ -65,7 +66,6 @@ #include #endif #ifdef __linux__ -#include #include #include #include @@ -95,27 +95,20 @@ #endif =20 #ifdef __OpenBSD__ -#include #include #include #endif =20 #ifdef __NetBSD__ -#include #include #include #include #endif =20 #ifdef __DragonFly__ -#include #include #endif =20 -#ifdef EMSCRIPTEN -#include -#endif - /* OS X does not have O_DSYNC */ #ifndef O_DSYNC #ifdef O_SYNC --=20 2.51.0 From nobody Mon Feb 9 15:48:58 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=reject dis=none) header.from=zamaudio.com ARC-Seal: i=1; a=rsa-sha256; t=1770530454; cv=none; d=zohomail.com; s=zohoarc; b=BnUcPj4EhmHcKrsHZY8qNDNiDTRm83POLQceEuvC5PjeZ06Oh7yBTlw5Pk7HSFMRcLHm7QbkzVkz+rux/C4DZaWje+R/mq5/Ya6mXBxm59b6ZDWwn9vamIAxVm+X+w9PeVwBKwXecUQdbwUckBWL8tNz8+FFX+u7i37HKNa8DRo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1770530454; h=Content-Type: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:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=LHZqZzgOwh2kAijmgY5Qb41C5r1zRUYNLCfwaw141aI=; b=RibdBqsJY4iY8b4ez3HHd+dKFLXqc28uuA1eJd8Z92kH2zfaTl2mCXsR6DwJY0QkW7HnJ02ef5mVM+r2VC0RMV9DMhPUVR3gtH7fQe8x4PAf9lu8lq1G56/TGPddRDHX+dQ6oyBHVhpw+JSSuJeyJbVEwTh/B0SviR7vPcWblDo= 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=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 177053045476956.17489578794982; Sat, 7 Feb 2026 22:00:54 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1voxqU-0000w2-1R; Sun, 08 Feb 2026 01:00:38 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1voxpn-0000Rg-Vm; Sun, 08 Feb 2026 00:59:56 -0500 Received: from mail-4317.protonmail.ch ([185.70.43.17]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1voxpm-0007Vp-Lz; Sun, 08 Feb 2026 00:59:51 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=zamaudio.com; s=protonmail3; t=1770530388; x=1770789588; bh=LHZqZzgOwh2kAijmgY5Qb41C5r1zRUYNLCfwaw141aI=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector; b=maZXDzAnLsLdQPlD/DN6tffhX2a/AKkTZddvOlEEqjpGBEwmOgprkKf5nm4oiPY8O TauUqV5jYS4KsFP6y9dl5VxGB65SjbjW/ZyKwBM3mIB88py9Vq2R8XKH4YzuGFUq72 wdTCSapd2Nw2uP3+LyzyDZ2XWwIwhKpVUzqHD5yzWiO3gaqHUl4JdrAWUsdb29KrDy hOaVRzOMAY3gdjdju4v704E5ygwglMTh+96kL43IKsS8IJyPCaT/roUwIcqMlwCed/ fsnQ6CZiLWlfDverXCNjI829CPooJ6Tl/lf+WxaoanmHfHkRccV7mmyq51yFQn7Bm0 7JWRkct6f6QEg== Date: Sun, 08 Feb 2026 05:59:45 +0000 To: bug-hurd@gnu.org From: Damien Zammit Cc: qemu-devel@nongnu.org, qemu-block@nongnu.org, manolodemedici@gmail.com, pbonzini@redhat.com, stefanb@linux.ibm.com, peter.maydell@linaro.org, kwolf@redhat.com, berrange@redhat.com, eblake@redhat.com, bugaevc@gmail.com Subject: [PATCH v5 5/5 qemu] Make copy_file_range non-static on GNU/Hurd Message-ID: <20260208055858.2166524-6-damien@zamaudio.com> In-Reply-To: <20260208055858.2166524-1-damien@zamaudio.com> References: <20260208055858.2166524-1-damien@zamaudio.com> Feedback-ID: 43209410:user:proton X-Pm-Message-ID: bb873a593fddc65868e1436febfb423f5d5dcad0 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=lists.gnu.org; Received-SPF: pass client-ip=185.70.43.17; envelope-from=damien@zamaudio.com; helo=mail-4317.protonmail.ch X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=unavailable 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 @zamaudio.com) X-ZM-MESSAGEID: 1770530457572154100 Content-Type: text/plain; charset="utf-8" glibc has a stubs mechanism: a function can be declared in the system headers, but only implemented as a stub that always fails with ENOSYS, for example. Therefore when implementing this function we cannot use static. Signed-off-by: Damien Zammit --- block/file-posix.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/file-posix.c b/block/file-posix.c index 8a3ba5eecb..b9a7786827 100644 --- a/block/file-posix.c +++ b/block/file-posix.c @@ -2106,7 +2106,7 @@ static int handle_aiocb_write_zeroes_unmap(void *opaq= ue) } =20 #ifndef HAVE_COPY_FILE_RANGE -#ifndef EMSCRIPTEN +#if !defined(EMSCRIPTEN) && !defined(__GNU__) static #endif ssize_t copy_file_range(int in_fd, off_t *in_off, int out_fd, --=20 2.51.0