qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [RFC prep-next 0/2] prep_pci: Prepare for QOM realize


From: Anthony Liguori
Subject: Re: [Qemu-devel] [RFC prep-next 0/2] prep_pci: Prepare for QOM realize
Date: Wed, 30 May 2012 15:21:54 +0800
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1

On 05/27/2012 02:15 AM, Andreas Färber wrote:
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.

Looks good to me.

Reviewed-by: Anthony Liguori <address@hidden>


Anthony, do you have further refactorings of PCIBus queued already, moving the
struct to pci.h?

qom-rebase on github has my work to date. Much of it is in a pretty raw state though.

Regards,

Anthony Liguori


Regards,
Andreas

Cc: Anthony Liguori<address@hidden>
Cc: Paolo Bonzini<address@hidden>
Cc: Alexander Graf<address@hidden>

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(-)





reply via email to

[Prev in Thread] Current Thread [Next in Thread]