Received: from eggs.gnu.org ([208.118.235.92]:54059) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYLWg-0001V8-5t for qemu-devel@nongnu.org; Sat, 26 May 2012 14:15:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SYLWd-0001f4-Uj for qemu-devel@nongnu.org; Sat, 26 May 2012 14:15:41 -0400 Received: from mout.web.de ([212.227.15.3]:50026) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SYLWd-0001em-LW for qemu-devel@nongnu.org; Sat, 26 May 2012 14:15:39 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Sat, 26 May 2012 20:15:27 +0200 Message-Id: <1338056129-13778-1-git-send-email-andreas.faerber@web.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Subject: [Qemu-devel] [RFC prep-next 0/2] prep_pci: Prepare for QOM realize List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Alexander Graf , Anthony Liguori Hello, This mini-series, based on master, starts fixing issues in the way of calling recursive object_realize() at machine-level (vl.c). Patch 1 is a cherry-pick from Anthony's / Wan Peng's i440fx series, fixing Coding Style issues and dropping parts dependent on MemoryRegion QOM'ification. Patch 2 avoids two allocations, the PCIBus and the controller's PCIDevice, by allocating them as part of the host controller state. This requires access to struct PCIBus, which Anthony and Paolo have refactored on qom-next, so for simplicity I just #include pci_internals.h for now. Anthony, do you have further refactorings of PCIBus queued already, moving the struct to pci.h? Regards, Andreas Cc: Anthony Liguori Cc: Paolo Bonzini Cc: Alexander Graf Andreas Färber (2): pci-host: Turn into SysBus-derived QOM type prep_pci: Create PCIBus and PCIDevice in-place hw/pci_host.c | 11 ++++++++++ hw/pci_host.h | 3 ++ hw/prep_pci.c | 62 ++++++++++++++++++++++++++++++++++++++++---------------- 3 files changed, 58 insertions(+), 18 deletions(-) -- 1.7.7