qemu-patch-raspberry4/hw/ide
Paolo Bonzini bce544740a qdev: Move bus properties to abstract superclasses
In qdev, each bus in practice identified an abstract superclass, but
this was mostly hidden.  In QOM, instead, these abstract classes are
explicit so we can move bus properties there.

All bus property walks are removed, and all device property walks
are changed to look along the class hierarchy instead.

We would have duplicates if class A defines some properties and its
subclass B does not define any, because class_b->props will be
left equal to class_a->props.

The solution here is to reintroduce the class_base_init TypeInfo
callback, that was present in one of the early QOM versions but
removed (on my request...) before committing.

This breaks global bus properties, an obscure feature when used
with the command-line which is actually useful and used when used by
backwards-compatible machine types.  So this patch also adjusts the
global bus properties in hw/pc_piix.c to refer to the abstract class.

Globals and other properties must be modified in the same patch to
avoid complications related to initialization ordering.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
2012-06-18 15:14:37 +02:00
..
ahci.c ahci: SATA FIS is 20 bytes, not 0x20 2012-05-30 14:51:09 +02:00
ahci.h ahci: add port I/O index-data pair 2011-09-21 14:32:20 +02:00
atapi.c block: Don't call bdrv_eject() if the tray state didn't change 2012-02-22 17:23:21 -02:00
cmd646.c Add missing const attributes for MemoryRegionOps 2012-03-11 11:40:15 +00:00
core.c ATA: Allow WIN_SECURITY_FREEZE_LOCK as nop 2012-05-02 18:47:08 +02:00
ich.c qom: Unify type registration 2012-02-15 09:39:21 -06:00
internal.h ide: convert ide_sector_read() to asynchronous I/O 2012-04-19 16:03:27 +02:00
isa.c qom: Unify type registration 2012-02-15 09:39:21 -06:00
macio.c Use DMADirection type for dma_bdrv_io 2012-04-05 14:54:40 +02:00
Makefile.objs build: convert libhw to nested Makefile.objs 2012-06-07 09:21:17 +02:00
microdrive.c hw: Trim superfluous #include "block_int.h" 2011-09-12 15:17:21 +02:00
mmio.c ide/mmio: convert to memory API 2011-11-24 18:31:59 +02:00
pci.c ide: fix compilation errors when DEBUG_IDE is set 2012-02-10 10:44:52 +00:00
pci.h ide: convert to memory API 2011-08-08 10:15:54 -05:00
piix.c Add missing const attributes for MemoryRegionOps 2012-03-11 11:40:15 +00:00
qdev.c qdev: Move bus properties to abstract superclasses 2012-06-18 15:14:37 +02:00
via.c Add missing const attributes for MemoryRegionOps 2012-03-11 11:40:15 +00:00