Skip to contentSkip to conversation

docs: update HVM emulated unplug protocol to cover NVMe disks

PATCH In review Paul Durrant 3 participants 3 messages Mar 24, 2017

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 docs: update HVM emulated unplug protocol to cover NVMe disks

Recent discussions on xen-devel have highlighted that to properly support displacing emulated NVMe disks with PV equivalents will need updates to PV frontends. Therefore it is important that, if an emulated NVMe disk is exposed to a guest with an existing PV storage frontend, that frontend does not inadvertently cause unplug of that emulated disk when unplugging IDE or SCSI disks.

This patch defines a new bit in the mask used to instruct QEMU to unplug emulated devices which will instruct QEMU to unplug NVMe disks and limits the semantics of the existing 'all' disk-unplug bit to only IDE and/or SCSI disks.

---
Cc: Andrew Cooper <[email protected]>
Cc: George Dunlap <[email protected]>
Cc: Ian Jackson <[email protected]>
Cc: Jan Beulich <[email protected]>
Cc: Konrad Rzeszutek Wilk <[email protected]>
Cc: Stefano Stabellini <[email protected]>
Cc: Tim Deegan <[email protected]>
Cc: Wei Liu <[email protected]>

v2:
- Updated commit comment with background rather then referring to thread URL.

---
 docs/misc/hvm-emulated-unplug.markdown | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)
docs/misc/hvm-emulated-unplug.markdown +6 -5
index 8ead0c5..f6b27ed 100644
@@ -32,12 +32,13 @@ drivers):
    blacklisted and should not load.
 
 6. The drivers write a two-byte bitmask of devices to unplug to IO
-   port `0x10`.  The defined fields are:
+   port `0x10`.  The defined bits are:
 
-  * `1` -- All emulated disks (not including CD drives)
-  * `2` -- All emulated NICs
-  * `4` -- All IDE disks except for the primary master (not including CD
-	   drives)
+  * `0` -- All emulated IDE and SCSI disks (not including CD drives).
+  * `1` -- All emulated NICs.
+  * `2` -- All IDE disks except for the primary master (not including CD
+	   drives). This is overridden by bit 0.
+  * `3` -- All emulated NVMe disks.
 
    The relevant emulated devices then disappear from the relevant
    buses.  For most guest operating systems, you want to do this
Signature · 7 lines
2.1.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
Reviewed-by on v2 1/1
#1 lore raw
Quoted 7 lines · Paul Durrant

Recent discussions on xen-devel have highlighted that to properly support displacing emulated NVMe disks with PV equivalents will need updates to PV frontends. Therefore it is important that, if an emulated NVMe disk is exposed to a guest with an existing PV storage frontend, that frontend does not inadvertently cause unplug of that emulated disk when unplugging IDE or SCSI disks.

Quoted 6 lines

This patch defines a new bit in the mask used to instruct QEMU to unplug emulated devices which will instruct QEMU to unplug NVMe disks and limits the semantics of the existing 'all' disk-unplug bit to only IDE and/or SCSI disks.

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel

Acked-by on v2 1/1
#2 lore raw
In reply to Paul Durrant
Quoted 7 lines · Paul Durrant

Recent discussions on xen-devel have highlighted that to properly support displacing emulated NVMe disks with PV equivalents will need updates to PV frontends. Therefore it is important that, if an emulated NVMe disk is exposed to a guest with an existing PV storage frontend, that frontend does not inadvertently cause unplug of that emulated disk when unplugging IDE or SCSI disks.

Quoted 6 lines

This patch defines a new bit in the mask used to instruct QEMU to unplug emulated devices which will instruct QEMU to unplug NVMe disks and limits the semantics of the existing 'all' disk-unplug bit to only IDE and/or SCSI disks.

That's a lot better -- thanks!

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel