Skip to content

RFC prep_pci: Prepare for QOM realize

Andreas Färber qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2pci-host: Turn into SysBus-derived QOM typehw/pci_host.c hw/pci_host.h hw/prep_pci.c+16 -20 replies
2/2prep_pci: Create PCIBus and PCIDevice in-placehw/prep_pci.c+42 -160 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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 <[email protected]>
Cc Paolo Bonzini <[email protected]>
Cc Alexander Graf <[email protected]>

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(-)
Signature · 1 line
1.7.7