qemu-patch-raspberry4/hw/usb
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
..
bus.c qdev: Move bus properties to abstract superclasses 2012-06-18 15:14:37 +02:00
core.c usb-ehci: add missing usb_packet_init() call 2012-04-26 12:21:15 +02:00
desc.c usb: add serial number generator 2012-04-26 12:21:17 +02:00
desc.h usb: add serial number generator 2012-04-26 12:21:17 +02:00
dev-audio.c usb: add serial number generator 2012-04-26 12:21:17 +02:00
dev-bluetooth.c usb: add serial number generator 2012-04-26 12:21:17 +02:00
dev-hid.c usb: the big rename 2012-03-13 10:15:32 +01:00
dev-hub.c usb: add serial number generator 2012-04-26 12:21:17 +02:00
dev-network.c net: net_client_init(): use error_set() 2012-06-04 13:49:35 -03:00
dev-serial.c usb: add serial number generator 2012-04-26 12:21:17 +02:00
dev-smartcard-reader.c qdev: Move bus properties to abstract superclasses 2012-06-18 15:14:37 +02:00
dev-storage.c usb-storage: migration support 2012-06-07 10:02:21 +02:00
dev-wacom.c usb: add serial number generator 2012-04-26 12:21:17 +02:00
hcd-ehci.c ehci: rework frame skipping 2012-06-07 10:02:23 +02:00
hcd-musb.c usb: the big rename 2012-03-13 10:15:32 +01:00
hcd-ohci.c usb-ohci: DMA writeback bug fixes 2012-03-13 10:15:32 +01:00
hcd-uhci.c uhci: fix irq routing 2012-06-07 10:02:20 +02:00
hcd-xhci.c xhci: trace: slots 2012-06-07 10:02:22 +02:00
host-bsd.c usb: the big rename 2012-03-13 10:15:32 +01:00
host-linux.c usb-host: handle guest-issued clear halt 2012-05-14 10:22:20 +02:00
host-stub.c usb: the big rename 2012-03-13 10:15:32 +01:00
libhw.c usb: the big rename 2012-03-13 10:15:32 +01:00
Makefile.objs build: convert libhw to nested Makefile.objs 2012-06-07 09:21:17 +02:00
redirect.c usb-redir: Not finding an async urb id is not an error 2012-04-26 12:21:17 +02:00