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 lists1p.gnu.org (lists1p.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 443AFCD98F2 for ; Thu, 18 Jun 2026 11:12:38 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1waAf9-0005KS-6L; Thu, 18 Jun 2026 07:11:59 -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 1waAez-0005HM-H4; Thu, 18 Jun 2026 07:11:51 -0400 Received: from zero.eik.bme.hu ([2001:738:2001:2001::2001]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1waAex-0003GU-Ni; Thu, 18 Jun 2026 07:11:49 -0400 Received: from localhost (localhost [127.0.0.1]) by zero.eik.bme.hu (Postfix) with ESMTP id ECF3E59698A; Thu, 18 Jun 2026 13:11:40 +0200 (CEST) X-Virus-Scanned: amavis at eik.bme.hu Received: from zero.eik.bme.hu ([127.0.0.1]) by localhost (zero.eik.bme.hu [127.0.0.1]) (amavis, port 10028) with ESMTP id geM1kUJKwrTe; Thu, 18 Jun 2026 13:11:38 +0200 (CEST) Received: by zero.eik.bme.hu (Postfix, from userid 432) id D9B5D596952; Thu, 18 Jun 2026 13:11:38 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zero.eik.bme.hu (Postfix) with ESMTP id D799D59694F; Thu, 18 Jun 2026 13:11:38 +0200 (CEST) Date: Thu, 18 Jun 2026 13:11:38 +0200 (CEST) From: BALATON Zoltan To: Matt Jacobson cc: qemu-devel@nongnu.org, Kevin Wolf , Hanna Reitz , qemu-block@nongnu.org, Mark Cave-Ayland , Laurent Vivier Subject: Re: [PATCH v2 1/5] hw/block: add Sony/Apple "SuperDrive" diskette drive In-Reply-To: <20260617235032.21491-2-mhjacobson@me.com> Message-ID: <758dd5cb-ebdc-325c-37c1-e9120883f468@eik.bme.hu> References: <20260617235032.21491-1-mhjacobson@me.com> <20260617235032.21491-2-mhjacobson@me.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed Received-SPF: pass client-ip=2001:738:2001:2001::2001; envelope-from=balaton@eik.bme.hu; helo=zero.eik.bme.hu X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, 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 On Wed, 17 Jun 2026, Matt Jacobson wrote: > The Mac Quadra 800 contains a "SuperDrive" floppy drive that supports > both GCR (400 kB and 800 kB) and MFM (1440 kB) diskettes. Implement > an emulated version, to be controlled by a forthcoming SWIM2 device. A bit more explanation could be useful here. In the cover letter it's mentioned that GCR/MFM encoding is generated by this emulation. Maybe that should be mentioned here. But I don't see what it's needed for. I thought maybe for single bit reads but those are not emulated. So is encoded data needed at all or could be added later when emulating single bit reads making this a simpler patch? My original question that lead to to above was if the asserts in GCR encoding and elsewhere could be caused by the user supplying invalid data (i.e. bad disk image file) and thus crashing QEMU but I think if the disk images contain decoded data not raw GCR/MFM encoded images then these asserts would only be caused by errors in encoding functions in this file but I'm not completely sure. Regards, BALATON Zoltan > Signed-off-by: Matt Jacobson > --- > hw/block/meson.build | 2 +- > hw/block/sony_superdrive.c | 994 +++++++++++++++++++++++++++++ > hw/block/trace-events | 10 + > include/hw/block/sony_superdrive.h | 56 ++ > 4 files changed, 1061 insertions(+), 1 deletion(-)