prep_pci: QOM'ify Raven PCI host bridge
Introduce type constant and cast macro. Avoid accessing parent fieldsdirectly.
Also add missing space and braces.
Signed-off-by: Andreas Färber <afaerber@suse.de>Acked-by: Michael S. Tsirkin <mst@redhat.com>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
spapr_pci: QOM'ify sPAPR PCI host bridge
Introduce type constant. Introduce cast macro to drop bogus busdev fieldthat would've broken SYS_BUS_DEVICE(). Avoid accessing parent fieldsdirectly.
Free the identifier phb as acronym for PCI_HOST_BRIDGE.
Updated against conflicting merge from branch 'agraf/ppc-for-upstream'...
unin_pci: QOM'ify UniNorth PCI host bridges
Introduce type constants and cast macros.Avoid accessing parent fields directly.
pci_host: Turn into SysBus-derived QOM type
The preceding commits fixed misuses of FROM_SYSBUS() that led people toadd a bogus busdev field. For qdev the field order was less relevant butfor QOM the PCIHostState field (including the SysBusDevice actually...
pci: Derive PCI host bridges from TYPE_PCI_HOST_BRIDGE
Use PCIHostState and PCI_HOST_BRIDGE() where appropriate.
Signed-off-by: Andreas Färber <afaerber@suse.de>Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
pci: Tidy up PCI host bridges
Adopt the QOM parent field name and enforce QOM-style access via casts.Don't just typedef PCIHostState, either use it directly or embed it.
qapi: add 'query-target' command to return target arch
Add a 'query-target' QAPI command to allow management applicationsto determine what target architecture a QEMU binary is emulatingwithout having to parse the binary name or -help output
$ qmp-shell -p /tmp/qemu...
gt64xxx: QOM'ify GT64120 PCI host bridge
Introduce type constant. Introduce cast macro to drop dummy busdev fieldused with FROM_SYSBUS() macro that would've broken SYS_BUS_DEVICE().Avoid accessing DeviceState indirectly through PCIHostState.
Signed-off-by: Andreas Färber <afaerber@suse.de>...
ppc4xx_pci: QOM'ify ppc4xx PCI host bridge
Introduce type constant and cast macro. Avoid accessing its parent fielddirectly.
ppce500_pci: QOM'ify e500 PCI host bridge
View all revisions | View revisions
Also available in: Atom