Received: from eggs.gnu.org ([2001:4830:134:3::10]:36068) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4r2R-0006WO-Uj for qemu-devel@nongnu.org; Fri, 04 Dec 2015 09:08:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4r2M-0006VH-Uj for qemu-devel@nongnu.org; Fri, 04 Dec 2015 09:08:43 -0500 Received: from mx1.redhat.com ([209.132.183.28]:51897) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4r2M-0006VC-Ny for qemu-devel@nongnu.org; Fri, 04 Dec 2015 09:08:38 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (Postfix) with ESMTPS id 56C9D8E694 for ; Fri, 4 Dec 2015 14:08:38 +0000 (UTC) Date: Fri, 4 Dec 2015 12:08:35 -0200 From: Eduardo Habkost Message-ID: <20151204140835.GJ14490@thinpad.lan.raisama.net> References: <1449094978-22986-1-git-send-email-ehabkost@redhat.com> <20151203161919.47a818a9@nial.brq.redhat.com> <20151203171621.GV23717@thinpad.lan.raisama.net> <20151204142441.7f207282@nial.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20151204142441.7f207282@nial.brq.redhat.com> Subject: Re: [Qemu-devel] [PATCH 00/13] acpi: Make piix-specific and q35-specific code generic List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: Marcel Apfelbaum , qemu-devel@nongnu.org, "Michael S. Tsirkin" On Fri, Dec 04, 2015 at 02:24:41PM +0100, Igor Mammedov wrote: > On Thu, 3 Dec 2015 15:16:21 -0200 > Eduardo Habkost wrote: > > > On Thu, Dec 03, 2015 at 04:19:19PM +0100, Igor Mammedov wrote: > > > On Wed, 2 Dec 2015 20:22:45 -0200 > > > Eduardo Habkost wrote: > > > > > > > This series removes piix-specific and q35-specific code from > > > > acpi-build.c, making it generic and without direct dependencies > > > > to piix and q35 code. > > > we are conflicting reshuffling acpi-build.c at the same time > > > could be cleanup done on top of my refactoring > > > drop_ASL_support_v1 branch: > > > > > > https://github.com/imammedo/qemu/commits/drop_ASL_support_v1 > > > > Do you plan to submit it soon? > I plan to submit it as soon as 2.5 is released since Michael is busy > with 2.5 and possibly the only reviewer. > But if it help I can submit it earlier and add you in CC. I have been submitting for-2.6 patches, already. It helps get the patches reviewed earlier so they have a chance to get applied as soon as 2.5 is released. > > > > > It looks like my series and yours go in opposite directions. I am > > trying to remove piix4-specific code from acpi-build, and you are > > addding a is_piix4 field to AcpiMiscInfo. Your series makes much > > more difficult to remove piix4-specific code from acpi-build.c, > > but this sounds like a reasonable price for moving the dsdt.dsl > > logic to C. Maybe I should change my goal from "removing > > piix4-specific code" to just simplifying the code. > It should be ok to remove explicit detection of piix4/q35 from > acpi-build.c, what I wouldn't wish though is to pull ACPI deps > into boards codebase. What we have in acpi-build.c is mostly > firmware generation code and it would be better to keep it there. Agreed. And your refactoring makes the piix4/q35 differences much more visible. After making the piix4/q35 differences visible, I wonder if we could make the reason for each "if (piix4)" line clearer. For example, I assume some of the "if (piix4)" lines could become "if (acpi_pci_hotplug_enabled())", but I don't know which ones. > > After merging refactoring, I plan to simplify it by moving out > generic memory/cpu hotplug parts into hw/acpi/, > but the rest of DSDT will probably stay there and we can > merge SSDT into DSDT which also should help to simplify it. > > But for now it's dumb refactoring which is byte compatible with > DSDTs we have in ASL to avoid regressions in such huge series. I will let you make the cleanups you are planning, first. After that is settled, I will check which of the patches in this series still make sense. My original plan was to only suggest 1 or 2 simple cleanups after a discussion with Marcel. :) -- Eduardo