From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:36431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoWsl-0007GM-47 for qemu-devel@nongnu.org; Wed, 12 Nov 2014 07:18:49 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XoWse-0005ZM-UC for qemu-devel@nongnu.org; Wed, 12 Nov 2014 07:18:43 -0500 Received: from cam-admin0.cambridge.arm.com ([217.140.96.50]:40421) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XoWse-0005YZ-KS for qemu-devel@nongnu.org; Wed, 12 Nov 2014 07:18:36 -0500 Date: Wed, 12 Nov 2014 12:18:09 +0000 From: Mark Rutland Message-ID: <20141112121809.GF28015@leverpostej> References: <1414691045-4793-1-git-send-email-a.spyridakis@virtualopensystems.com> <546323A7.6040805@huawei.com> <20141112105640.GB28015@leverpostej> <1857764.BysEu3dgOQ@wuerfel> <20141112113401.GH19598@cbox> <5463490B.9080101@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5463490B.9080101@redhat.com> Content-Language: en-US Subject: Re: [Qemu-devel] [Linaro-acpi] [RFC PATCH 0/7] hw/arm/virt: Dynamic ACPI v5.1 table generation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: Peter Maydell , Arnd Bergmann , "linaro-acpi@lists.linaro.org" , Paul Mundt , Claudio Fontana , QEMU Developers , Jani Kokkonen , "tech@virtualopensystems.com" , Christoffer Dall On Wed, Nov 12, 2014 at 11:48:27AM +0000, Paolo Bonzini wrote: > > On 12/11/2014 12:34, Christoffer Dall wrote: > > AFAIU ACPI already has a method for doing this > > It's not defined in the spec. QEMU defines a bunch of registers to do > that, and provides AML that works with those registers. Huh? SCI + AML is the method, and that's defined by the spec. The registers the AML pokes are an implementation detail abstracted by the AML, and as such are irrelevant to the spec. > While these registers can be separated from the ACPI code in QEMU... > > > and I speculate that there is some IRQ > > assigned to an ACPI event that causes some AML code to be interpreted by > > your OS. > > ... QEMU does exactly this, it uses the "general purpose event" (GPE) > mechanism to trigger the parsing of the AML. When you hot-plug/unplug a > CPU or memory, an SCI (system control interrupt - the ACPI IRQ) is > triggered in the guest and that's not entirely disconnected from ACPI. > > Perhaps you could treat it as a shared level-triggered interrupt in DT? > I don't know. Putting an interrupt in DT is trivial. The hard part is the rest of the interface, which so far there is no specification for. Thanks, Mark.