]> www.infradead.org Git - users/dwmw2/qemu.git/commit
xen-platform: unplug AHCI disks
authorDavid Woodhouse <dwmw@amazon.co.uk>
Thu, 19 Oct 2023 11:56:42 +0000 (12:56 +0100)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Thu, 19 Oct 2023 12:47:41 +0000 (13:47 +0100)
commit1ceb0c88f38c21c09d7ddcaf27e6c0d388a6c50f
treee4a42b0504dbbeafaea19813c5b57148ce3180ad
parent5d99fcf06ba405eaa36bc6bdfc3090a3173b3b99
xen-platform: unplug AHCI disks

To support Xen guests using the Q35 chipset, the unplug protocol needs
to also remove AHCI disks.

Make pci_xen_ide_unplug() more generic, iterating over the children
of the PCI device and destroying the "ide-hd" devices. That works the
same for both AHCI and IDE, as does the detection of the primary disk
as unit 0 on the bus named "ide.0".

Then pci_xen_ide_unplug() can be used for both AHCI and IDE devices.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
hw/i386/xen/xen_platform.c