Merge remote-tracking branch 'remotes/afaerber/tags/qom-devices-for-peter' into staging
QOM infrastructure fixes and device conversions
i2c: Rename i2c_bus to I2CBus
Reviewed-by: Peter Crosthwaite <peter.crosthwaite@xilinx.com>Signed-off-by: Andreas Färber <afaerber@suse.de>
acpi/piix4pm: convert ACPI PCI hotplug to use hotplug-handler API
Split piix4_device_hotplug() into hotplug/unplug callbacksand register them as "hotplug-handler" interface implementation ofPIIX4_PM device.
Replace pci_bus_hotplug() wiring with setting link on...
qdev:pci: refactor PCIDevice to use generic "hotpluggable" property
Get rid of PCIDevice specific PCIDeviceClass.no_hotplug and usegeneric DeviceClass.hotpluggable field instead.
Signed-off-by: Igor Mammedov <imammedo@redhat.com>Reviewed-by: Michael S. Tsirkin <mst@redhat.com>...
hw/acpi: move typeinfo to the file end
do so to avoid not necessary forward declarations andplace typeinfo registration at the file end where it'susually expected.
hw:piix4:acpi: reuse pcihp code for legacy PCI hotplug
reduces acpi PCI hotplug code duplication by ~200LOC
Signed-off-by: Igor Mammedov <imammedo@redhat.com>Reviewed-by: Michael S. Tsirkin <mst@redhat.com>Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
pcihp: reduce number of device check events
PIIX created a made-up value for the UP register since it was read byguest 32 times for each interrupt.There's no reason to do this for the new PCIHP: register is only readonce for each interrupt, so clean up code by making read act as an...
pcihp: replace enable|disable_device() with oneliners
enable_device() and disable_device() functions aren't reused anywere,so replace them with respective oneliners at call sites.
pcihp: make PCI hotplug mmio handlers indifferent to PCI_HOTPLUG_ADDR
... removes dependency of mmio handler on PCI_HOTPLUG_ADDR.It will be needed in case of Q35 where base could be different.
pcihp: make pci_read() mmio calback compatible with legacy ACPI hotplug
due to recent change introduced by:"pcihp: reduce number of device check events"
'up' field is cleared right after it's read.This is incompatible with legacy BIOS ACPI codewhere PCNF ACPI method reads this field 32 times....
View revisions
Also available in: Atom