qemu-e2k/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
atapi.c
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
macio.c ide: add TRIM support 2011-06-15 14:36:16 +02:00
microdrive.c
mmio.c
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