diff options
author | Paul Durrant | 2017-01-26 10:37:24 +0100 |
---|---|---|
committer | Stefano Stabellini | 2017-01-28 00:23:29 +0100 |
commit | 090fa1c8c837ebabf8c199031e0f9a9bcdf26814 (patch) | |
tree | c8aa9fc8364220abb71283b9d6f2085a518ec51d | |
parent | xen-platform: re-structure unplug_disks (diff) | |
download | qemu-090fa1c8c837ebabf8c199031e0f9a9bcdf26814.tar.gz qemu-090fa1c8c837ebabf8c199031e0f9a9bcdf26814.tar.xz qemu-090fa1c8c837ebabf8c199031e0f9a9bcdf26814.zip |
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: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
-rw-r--r-- | hw/i386/xen/xen_platform.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/i386/xen/xen_platform.c b/hw/i386/xen/xen_platform.c index f50915ffbc..7d41ebb68b 100644 --- a/hw/i386/xen/xen_platform.c +++ b/hw/i386/xen/xen_platform.c @@ -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; |