Received: from eggs.gnu.org ([2001:4830:134:3::10]:38377) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4Wqp-0003UZ-QE for qemu-devel@nongnu.org; Thu, 03 Dec 2015 11:35:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a4Wqm-0006kL-Ks for qemu-devel@nongnu.org; Thu, 03 Dec 2015 11:35:23 -0500 Received: from mx1.redhat.com ([209.132.183.28]:47754) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a4Wqm-0006jr-Fn for qemu-devel@nongnu.org; Thu, 03 Dec 2015 11:35:20 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (Postfix) with ESMTPS id 86677367299 for ; Thu, 3 Dec 2015 16:35:19 +0000 (UTC) Date: Thu, 3 Dec 2015 14:35:13 -0200 From: Eduardo Habkost Message-ID: <20151203163513.GU23717@thinpad.lan.raisama.net> References: <1449094978-22986-1-git-send-email-ehabkost@redhat.com> <1449094978-22986-2-git-send-email-ehabkost@redhat.com> <56606127.1010608@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56606127.1010608@redhat.com> Subject: Re: [Qemu-devel] [PATCH 01/13] pc: Add PCMachineState::pci_host field List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Marcel Apfelbaum Cc: Igor Mammedov , Marcel Apfelbaum , qemu-devel@nongnu.org, "Michael S. Tsirkin" On Thu, Dec 03, 2015 at 05:35:03PM +0200, Marcel Apfelbaum wrote: > On 12/03/2015 12:22 AM, Eduardo Habkost wrote: > >This will allow us to avoid direct references to piix and q35 in > >acpi-build.c. > > > >Signed-off-by: Eduardo Habkost [...] > >diff --git a/include/hw/i386/pc.h b/include/hw/i386/pc.h > >index 6ff4721..8b184c1 100644 > >--- a/include/hw/i386/pc.h > >+++ b/include/hw/i386/pc.h > >@@ -38,6 +38,7 @@ struct PCMachineState { > > OnOffAuto vmport; > > OnOffAuto smm; > > ram_addr_t below_4g_mem_size, above_4g_mem_size; > >+ PCIHostState *pci_host; > > Having both pci_host and bus as class fields is not needed. > If you have the host, maybe you can get rid of the bus. Yes, I will send that as folllow-up. -- Eduardo