qemu-patch-raspberry4/hw/ide
Stefano Stabellini 679f4f8b17 xen: implement unplug protocol in xen_platform
The unplug protocol is necessary to support PV drivers in the guest: the
drivers expect to be able to "unplug" emulated disks and nics before
initializing the Xen PV interfaces.
It is responsibility of the guest to make sure that the unplug is done
before the emulated devices or the PV interface start to be used.

We use pci_for_each_device to walk the PCI bus, identify the devices and
disks that we want to disable and dynamically unplug them.

Changes in v2:

- use PCI_CLASS constants;

- replace pci_unplug_device with qdev_unplug;

- do not import hw/ide/internal.h in xen_platform.c;

Changes in v3:

- introduce piix3-ide-xen, that support hot-unplug;

- move the unplug code to hw/ide/piix.c;

- just call qdev_unplug from xen_platform.c to unplug the IDE disks;

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
2011-07-26 07:02:17 +02:00
..
ahci.c ahci: Fix non-NCQ accesses for LBA > 16bits 2011-05-19 12:08:28 +02:00
ahci.h ich/ahci: convert to pci_register_bar_simple() 2011-04-07 13:56:46 +03:00
atapi.c ide/atapi: fix set but unused 2011-05-03 11:29:21 +02:00
cmd646.c hw/ide/cmd646.c: convert to PCIDeviceInfo to initialize ids 2011-06-12 10:33:35 +03:00
core.c ide: Initialise buffers with zeros 2011-07-05 11:23:43 +02:00
ich.c Merge remote-tracking branch 'origin/master' into pci 2011-06-15 18:27:15 +03:00
internal.h ide: add TRIM support 2011-06-15 14:36:16 +02:00
isa.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
macio.c ide: add TRIM support 2011-06-15 14:36:16 +02:00
microdrive.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
mmio.c Remove unused sysemu.h include directives 2011-04-15 18:25:41 +00:00
pci.c ide: Clear error_status after restarting flush 2011-06-15 15:39:13 +02:00
pci.h ide: Split error status from status register 2011-06-15 14:36:15 +02:00
piix.c xen: implement unplug protocol in xen_platform 2011-07-26 07:02:17 +02:00
qdev.c ide: Turn properties any IDE device must have into bus properties 2011-07-23 11:21:29 -05:00
via.c hw/ide/via.c: convert to PCIDeviceInfo to initialize ids 2011-06-12 10:33:35 +03:00