From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SW8jZ-0006Xh-Hz for qemu-devel@nongnu.org; Sun, 20 May 2012 12:11:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SW8jX-0006vm-VP for qemu-devel@nongnu.org; Sun, 20 May 2012 12:11:53 -0400 Received: from mail-qc0-f173.google.com ([209.85.216.173]:42974) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SW8jX-0006va-Ru for qemu-devel@nongnu.org; Sun, 20 May 2012 12:11:51 -0400 Received: by qcsc20 with SMTP id c20so3264634qcs.4 for ; Sun, 20 May 2012 09:11:49 -0700 (PDT) Date: Sun, 20 May 2012 12:11:48 -0400 From: Kevin O'Connor Message-ID: <20120520161148.GA16818@morn.localdomain> References: <1337504620-20378-1-git-send-email-gleb@redhat.com> <1337504620-20378-3-git-send-email-gleb@redhat.com> <4FB8D933.5070800@redhat.com> <20120520121539.GJ10209@redhat.com> <4FB8E3FA.2040408@redhat.com> <20120520123633.GL10209@redhat.com> <4FB8E7C6.5090000@redhat.com> <20120520125936.GM10209@redhat.com> <4FB8F3F5.6010903@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4FB8F3F5.6010903@redhat.com> Subject: Re: [Qemu-devel] [PATCH 3/3] Get system state configuration from QEMU and patch DSDT with it. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: seabios@seabios.org, qemu-devel@nongnu.org, Gleb Natapov On Sun, May 20, 2012 at 04:39:01PM +0300, Avi Kivity wrote: > What about > > If (Fcfg(...)) { > Method()... > } > > ? > > (i.e.. define the method conditionally at runtime) As Gleb points out, this wont work. AML defines a static device/method/variable tree heirarchy. Only the return values of methods is programmable. This completely confused me when I first started looking at AML. ACPI is truly a bizarre spec. -Kevin