Received: from eggs.gnu.org ([2001:4830:134:3::10]:42096) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpJ2X-0003b1-Nn for qemu-devel@nongnu.org; Mon, 04 May 2015 12:16:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YpJ2T-00021h-NT for qemu-devel@nongnu.org; Mon, 04 May 2015 12:16:17 -0400 Received: from mail-qk0-f182.google.com ([209.85.220.182]:34761) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YpJ2T-00020r-KD for qemu-devel@nongnu.org; Mon, 04 May 2015 12:16:13 -0400 Received: by qkgx75 with SMTP id x75so88207878qkg.1 for ; Mon, 04 May 2015 09:16:12 -0700 (PDT) Date: Mon, 4 May 2015 12:16:10 -0400 From: Kevin O'Connor Message-ID: <20150504161610.GA21157@morn.localdomain> References: <1429137528-1069064-1-git-send-email-stefanb@linux.vnet.ibm.com> <20150416153506.3260becd@nial.brq.redhat.com> <552FC1AF.4030208@linux.vnet.ibm.com> <20150422090001.4191222f@nial.brq.redhat.com> <5537E60F.2050106@linux.vnet.ibm.com> <20150429110644.2000ebb8@nial.brq.redhat.com> <554109ED.7050500@linux.vnet.ibm.com> <20150504111602.079dc13b@nial.brq.redhat.com> <55478EB1.3020500@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55478EB1.3020500@linux.vnet.ibm.com> Subject: Re: [Qemu-devel] [PATCH 0/5] Extend TPM support with a QEMU-external TPM List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Berger Cc: safford@watson.ibm.com, Igor Mammedov , qemu-devel@nongnu.org, quan.xu@intel.com, mst@redhat.com On Mon, May 04, 2015 at 11:22:25AM -0400, Stefan Berger wrote: > On 05/04/2015 05:16 AM, Igor Mammedov wrote: > >On Wed, 29 Apr 2015 12:42:21 -0400 > >>2 choices now -- which one to take? > >I'd try installing extra SSDT table first as a cleanest way (seabios only) > >and if it fails fallback to TIS path. > > I did some experiment where I tried to use AML's Store() call to see whether > it can read from some entry in another scope, similar to what the specs show > on page 487, so that one could read the base address that is written > elsewhere. The problem seems to be that there is no actual searching going > on for accessing a scope during runtime, but this seems to be done during > compile time. So something like Store(\_SB.I2C1.Y, BUFF) from the specs > needs to have a SCOPE(\_SB.I2C1...) available during compile time. You can reference scopes provided by other SSDTs/DSDT using the "External()" acpi command. > Otherwise I am not sure how to go about this. The only way I could think of > would be to write a unique and 'recognizeable' address into the AML, > something like 0x12345678, try to find it in SeaBIOS and replace it with the > actual address. It doesn't seem right, tough. The next best choice would be > to paravirtualize the TIS with bytes that survive a reset. I don't think it's a good idea to have SeaBIOS modify the QEMU provided ACPI tables. It also shouldn't be necessary. If there's anything that QEMU needs in the guest memory, then QEMU should be able to build it and tell SeaBIOS to allocate it via the existing "romfile_loader" mechanism. -Kevin