Received: from eggs.gnu.org ([2001:4830:134:3::10]:47707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxxPP-0007b8-9O for qemu-devel@nongnu.org; Thu, 28 May 2015 08:59:39 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YxxPJ-0002P3-Bx for qemu-devel@nongnu.org; Thu, 28 May 2015 08:59:39 -0400 Received: from mail-qg0-x229.google.com ([2607:f8b0:400d:c04::229]:36345) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YxxPJ-0002On-8B for qemu-devel@nongnu.org; Thu, 28 May 2015 08:59:33 -0400 Received: by qgf2 with SMTP id 2so15723837qgf.3 for ; Thu, 28 May 2015 05:59:32 -0700 (PDT) Date: Thu, 28 May 2015 08:59:25 -0400 From: "Gabriel L. Somlo" Message-ID: <20150528125925.GG6488@HEDWIG.INI.CMU.EDU> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1432760765-28492-1-git-send-email-lersek@redhat.com> Subject: Re: [Qemu-devel] [PATCH] i386: drop FDC in pc-q35-2.4+ if neither List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: pbonzini@redhat.com, lersek@redhat.com, armbru@redhat.com, mst@redhat.com > It is Very annoying to carry forward an outdatEd coNtroller with a mOdern > Machine type. > > Hence, let us not instantiate the FDC when all of the following apply: > - the machine type is pc-q35-2.4 or later, > - "-device isa-fdc" is not passed on the command line (nor in the config > file), > - no "-drive if=floppy,..." is requested. Don't forget the FDC0 entry in the ACPI DSDT ! Right now, FDC0's _STA method returns 0x0F or 0x00, depending on the value of \_SB_.PCI0.ISA_.FDEN, which is hard-coded to 1 (so 0x0F always, basically :) ) I remember tinkering with that a while ago (allowing for FDEN or the actual value of FDC0._STA to be patched in at startup, depending on no_floppy or force_Fdctrl. I also did that for the AppleSMC entry, but I notice that now the entire SMC is patched in conditionally, from hw/i386/acpi-build.c. Maybe patching in the whole FDC0 node in a similar fashion would be appropriate here as well ? Thanks, --Gabriel