Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 89442D25B4E for ; Wed, 28 Jan 2026 12:40:59 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vl4qj-0003h1-0M; Wed, 28 Jan 2026 07:40:48 -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 1vl4q2-000316-8b for qemu-devel@nongnu.org; Wed, 28 Jan 2026 07:40:03 -0500 Received: from k57.kb8c70eb.use4.send.mailgun.net ([204.220.184.57]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1vl4pz-0003H4-Um for qemu-devel@nongnu.org; Wed, 28 Jan 2026 07:40:01 -0500 X-Mailgun-Sid: WyI4ZDFlNiIsInFlbXUtZGV2ZWxAbm9uZ251Lm9yZyIsIjk3NjA3ZSJd Received: from mail.yodel.dev (mail.yodel.dev [35.209.39.246]) by a5f49c60b2e2ea23c8d9cd4633d056baf9f3acee340122a51c771cd0ae716b28 with SMTP id 697a039cad801027aebf86b3; Wed, 28 Jan 2026 12:39:56 GMT X-Mailgun-Sending-Ip: 204.220.184.57 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yodel.dev; s=rsa2048; t=1769603996; bh=oEhp+s3gwPB+e69DfmLc6JHe63WTMMj3utbl9jFnuMc=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References: X-Mailgun-Dkim:From:In-Reply-To:Content-Type: Content-Transfer-Encoding:From:Reply-to:Subject:Date:Message-id:To: Cc:Mime-version:Content-type:Content-transfer-encoding:In-reply-to: References; b=kuQrpZQ09dq1eM7EwuDu5OrqkRpiyDD2qjI+4EOjttTtNqR4wgmoIjn1h2/B17mEX UXV5KCYT5/lMCB45Xp/3BDDQYrRoC6yX5dWZhAM879dZDL4jmu3ivkufphqfm+3TFh GrHWuMG0nCkiONHRX1KqlccKvitlahfouqR7frIqMi8B3IQCPf/kIxawbawR5fns/A r5GomwKFuKmQ9Tf5UTxIMdmQMHh3JJPNxeBX6QBX21tk1tvmqaPRKqlrvFr9i+Nz9k GglyNcvqG+lpjGeTfGhRbvLnC6eTGC5oYCD2aShG0MK0bzNinSz45SQZQNJS0Zxp1n pwXAQmjTQ/BDg== Message-ID: <6da498a5-4e91-4b61-aa6d-88efd4e78257@yodel.dev> Date: Wed, 28 Jan 2026 06:39:55 -0600 MIME-Version: 1.0 Subject: Re: [PATCH v3 0/3] gdbstub: Export helper to use GDB errno values To: qemu-devel@nongnu.org Cc: =?UTF-8?Q?Alex_Benn=C3=A9e?= , =?UTF-8?Q?Philippe_Mathieu-Daud=C3=A9?= , Laurent Vivier , Richard Henderson , Dominik Disconnect3d Czarnota References: <20260116014612.226183-1-yodel.eldar@yodel.dev> Content-Language: en-US X-Mailgun-Dkim: no X-Mailgun-Dkim: no From: Yodel Eldar Autocrypt: addr=yodel.eldar@yodel.dev; keydata= xjMEZxqXdhYJKwYBBAHaRw8BAQdAkletQdG3CLyANZyuf2t7Z9PK4b6HiT+DdSPUB2mHzmPN I1lvZGVsIEVsZGFyIDx5b2RlbC5lbGRhckB5b2RlbC5kZXY+wpkEExYKAEECGwMFCQOcG00F CwkIBwIGFQoJCAsCBBYCAwECHgECF4AWIQTTzRjNQG27imap+N+V7k+3NmVNrAUCaNWASwIZ AQAKCRCV7k+3NmVNrNnSAPoDjQXa6v7ZzdQSaLdRfAQy/5SsUucv+zp3WAP4pXdgJQEAzMMC Ctx4l6b13Fs2hZdRXEnF/4BZ9t1K68nwzZOV3QnOOARnGpd2EgorBgEEAZdVAQUBAQdAKPIy 3W/DKFsm1e+31zoqmOY0pqz8vjIM846wM6lEY2QDAQgHwn4EGBYIACYCGwwWIQTTzRjNQG27 imap+N+V7k+3NmVNrAUCaNWG7QUJA5wi9wAKCRCV7k+3NmVNrPusAQCQDQwETy7VT6UhHPho TkrQnsNqQfFU3tXqCTiViToktQD7B/U2/to97hQIJCWbK6yd3T+KPZJPMcHMg2XRyedUvgA= In-Reply-To: <20260116014612.226183-1-yodel.eldar@yodel.dev> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=204.220.184.57; envelope-from=bounce+0e9322.97607e-qemu-devel=nongnu.org@yodel.dev; helo=k57.kb8c70eb.use4.send.mailgun.net 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, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Hi, On 15/01/2026 19:46, Yodel Eldar wrote: > Currently, F reply packets in gdbstub/user-target.c emit the host's > errno values [1], but to facilitate host<->target independence the GDB > File-I/O protocol defines its own set of supported errno values that > should be used in replies instead. > > Patch 1 adds two GDB File-I/O errno values that were previously > undocumented despite having support. > > Patch 2 exports a mapping helper function statically defined in > m68k-dependent code by declaring it in include/gdbstub/syscalls.h > with the GDB File-I/O errno values, and moving the definition to > gdbstub/syscalls.c. > > Patch 3 passes the host errnos to the newly global mapping function > before emitting the result in F reply packets. This is the only patch > that still needs review, although it is somewhat similar to the v1 > version that Alex reviewed. > > I'm resending instead of just pinging, because there were DKIM-signing > issues last time, and that led to From-munging of the emails which could > be problematic for tooling. I believe that problem's resolved now. > > Besides the DKIM-signing issue, the bashism in the commit title of Patch > 1 was getting mangled with a spurious space presumably by Mailman, so > I've also changed it, despite my partiality for bashisms as that also > would've caused DKIM verification failure and possible munging. > > Thanks to Richard for the reviews in v2 and for having written that nice > helper function exported and used in this series. > > Thanks to Alex for the review of v1 that is now Patch 3. I wanted to > collect your R-b, but the patch underwent nontrivial change in v2, so I > left it out in case you had objections to those changes. > > Changes in v3: > No functional changes > - Rebase on mainline (no conflicts) > - Collect R-b's (Thanks, Richard) > - Minor rewording of commit messages > > Changes in v2: > - New patch adding two errno values > - New patch exporting helper function that maps errno values > > Link to v2: > https://lore.kernel.org/qemu-devel/20251017211149.163762-1-yodel.eldar@yodel.dev/ > Link to v1: > https://lore.kernel.org/qemu-devel/20251015162520.15736-1-yodel.eldar@yodel.dev/ > > [1] https://gitlab.com/qemu-project/qemu/-/issues/2751 > > Thanks, > Yodel > > Yodel Eldar (3): > include/gdbstub/syscalls: Add EIO and ENOSYS GDB File-I/O errno values > gdbstub: Export host_to_gdb_errno File-I/O helper function > gdbstub/user-target: Convert host errno to GDB File-I/O errno > > gdbstub/syscalls.c | 36 ++++++++++++++++++++++++++++++++++++ > gdbstub/user-target.c | 13 +++++++++---- > include/gdbstub/syscalls.h | 11 +++++++++++ > target/m68k/m68k-semi.c | 29 ----------------------------- > 4 files changed, 56 insertions(+), 33 deletions(-) > Ping? Please note: series is fully reviewed. Link: https://lore.kernel.org/qemu-devel/20260116014612.226183-1-yodel.eldar@yodel.dev/ Thanks, Yodel