From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gPboc-00043N-5a for qemu-devel@nongnu.org; Wed, 21 Nov 2018 18:21:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gPbob-0002W4-JH for qemu-devel@nongnu.org; Wed, 21 Nov 2018 18:21:50 -0500 Date: Thu, 22 Nov 2018 00:21:06 +0100 From: Samuel Ortiz Message-ID: <20181121232106.GB4450@caravaggio> References: <20181105014047.26447-1-sameo@linux.intel.com> <20181105014047.26447-13-sameo@linux.intel.com> <20181115133658.2cdbd918@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181115133658.2cdbd918@redhat.com> Subject: Re: [Qemu-devel] [PATCH v5 12/24] hw: acpi: Export the MCFG getter List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: Yang Zhong , Peter Maydell , Stefano Stabellini , Eduardo Habkost , "Michael S. Tsirkin" , qemu-devel@nongnu.org, Shannon Zhao , qemu-arm@nongnu.org, Paolo Bonzini , Anthony Perard , xen-devel@lists.xenproject.org, Richard Henderson Hi Igor, On Thu, Nov 15, 2018 at 01:36:58PM +0100, Igor Mammedov wrote: > On Mon, 5 Nov 2018 02:40:35 +0100 > Samuel Ortiz wrote: > > > From: Yang Zhong > > > > The ACPI MCFG getter is not x86 specific and could be called from > > anywhere within generic ACPI API, so let's export it. > So far it's x86 or more exactly q35 specific thing, It's property based, and it's using a generic PCIE property afaict. So it's up to each machine type to define those properties. I'm curious here: What's the idiomatic way to define a machine setting/attribute/property, let each instance define it or not, and make it available at run time? Would you be getting the PCI host pointer from the ACPI build state and getting that information back from there? Cheers, Samuel.