Received: from eggs.gnu.org ([2001:4830:134:3::10]:50597) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a9FzE-00007k-Nn for qemu-devel@nongnu.org; Wed, 16 Dec 2015 12:35:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a9Fz9-0008GL-Hs for qemu-devel@nongnu.org; Wed, 16 Dec 2015 12:35:36 -0500 Date: Wed, 16 Dec 2015 20:34:55 +0300 From: Roman Kagan Message-ID: <20151216173454.GA2779@rkaganb.sw.ru> References: <1450251909-1599-1-git-send-email-den@openvz.org> <20151216174657.3b380d66@igors-macbook-pro.local> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <20151216174657.3b380d66@igors-macbook-pro.local> Subject: Re: [Qemu-devel] [PATCH v2 1/1] i386: expose floppy-related objects in SSDT List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: Kevin Wolf , Eduardo Habkost , "Michael S. Tsirkin" , qemu-devel@nongnu.org, qemu-stable@nongnu.org, Paolo Bonzini , "Denis V. Lunev" , John Snow , Richard Henderson On Wed, Dec 16, 2015 at 05:46:57PM +0100, Igor Mammedov wrote: > On Wed, 16 Dec 2015 10:45:09 +0300 "Denis V. Lunev" > wrote: > > @@ -1125,6 +1183,26 @@ build_ssdt(GArray *table_data, GArray *linker, > > aml_append(ssdt, scope); > > } > > > > + { > add this block only if floppy controller is present ATM both qemu master (and stable branches) and your patchset define FDC0 unconditionally, making its _STA depend on FDEN field of the containing ISA device rather than any sort of qemu internal state. I think it's more consistent also to always define its _FDE. The whole definition of FDC0 can then be made contidional on the presence of the floppy controller later on top of your patchset. As for the subdevices representing floppy drives they already are defined only if present. > to minimize conflicts with existing series under review, > I'd suggest to put it before: > > if (misc->applesmc_io_base) { No prob, will do in v2. Thanks, Roman.