diff options
author | Stefano Stabellini | 2014-02-20 18:28:08 +0100 |
---|---|---|
committer | Stefano Stabellini | 2014-02-20 18:28:08 +0100 |
commit | 15e8159e7613ec0b1418879acc916d1412c02a28 (patch) | |
tree | b9e262b6944c1ea95196dc585d04afc0bd613f5d /hw/xen/xen_platform.c | |
parent | Merge remote-tracking branch 'remotes/kraxel/tags/pull-usb-3' into staging (diff) | |
download | qemu-15e8159e7613ec0b1418879acc916d1412c02a28.tar.gz qemu-15e8159e7613ec0b1418879acc916d1412c02a28.tar.xz qemu-15e8159e7613ec0b1418879acc916d1412c02a28.zip |
Call pci_piix3_xen_ide_unplug from unplug_disks
Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/xen/xen_platform.c')
-rw-r--r-- | hw/xen/xen_platform.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/hw/xen/xen_platform.c b/hw/xen/xen_platform.c index 70875e4122..1d9d0e9f25 100644 --- a/hw/xen/xen_platform.c +++ b/hw/xen/xen_platform.c @@ -27,6 +27,7 @@ #include "hw/hw.h" #include "hw/i386/pc.h" +#include "hw/ide.h" #include "hw/pci/pci.h" #include "hw/irq.h" #include "hw/xen/xen_common.h" @@ -110,7 +111,7 @@ static void unplug_disks(PCIBus *b, PCIDevice *d, void *o) if (pci_get_word(d->config + PCI_CLASS_DEVICE) == PCI_CLASS_STORAGE_IDE && strcmp(d->name, "xen-pci-passthrough") != 0) { - qdev_unplug(DEVICE(d), NULL); + pci_piix3_xen_ide_unplug(DEVICE(d)); } } |