Skip to content

Commit

Permalink
xen-platform: add support for unplugging NVMe disks...
Browse files Browse the repository at this point in the history
...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: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
  • Loading branch information
Paul Durrant authored and sstabellini committed Jan 27, 2017
1 parent 3d89e3f commit 090fa1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hw/i386/xen/xen_platform.c
Expand Up @@ -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;

Expand Down

0 comments on commit 090fa1c

Please sign in to comment.