Commit 090fa1c8 authored by Paul Durrant's avatar Paul Durrant Committed by Stefano Stabellini
Browse files

xen-platform: add support for unplugging NVMe disks...

...not just IDE and SCSI.

This patch allows the Xen tool-stack to fully support of NVMe as an
emulated disk type. See [1] for the relevant tool-stack patch discussion.

[1] https://lists.xen.org/archives/html/xen-devel/2017-01/msg01225.html



Signed-off-by: default avatarPaul Durrant <paul.durrant@citrix.com>
Reviewed-by: default avatarStefano Stabellini <sstabellini@kernel.org>
parent 3d89e3f7
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -120,6 +120,7 @@ static void unplug_disks(PCIBus *b, PCIDevice *d, void *o)
        break;

    case PCI_CLASS_STORAGE_SCSI:
    case PCI_CLASS_STORAGE_EXPRESS:
        object_unparent(OBJECT(d));
        break;