xen-platform: separate unplugging of NVMe disks
commit04d6da4ff6084a3cb1b7a981769d9aa17e469348
authorStefano Stabellini <sstabellini@kernel.org>
Tue, 18 Jul 2017 20:28:12 +0000 (18 13:28 -0700)
committerStefano Stabellini <sstabellini@kernel.org>
Tue, 18 Jul 2017 21:12:06 +0000 (18 14:12 -0700)
tree455729ef487acd240acffb6276be49668a4d4e46
parent64c7c1175b4e3e6fe005934cde63259d8adad392
xen-platform: separate unplugging of NVMe disks

Commit 090fa1c8 "add support for unplugging NVMe disks..." extended the
existing disk unplug flag to cover NVMe disks as well as IDE and SCSI.

The recent thread on the xen-devel mailing list [1] has highlighted that
this is not desirable behaviour: PV frontends should be able to distinguish
NVMe disks from other types of disk and should have separate control over
whether they are unplugged.

This patch defines a new bit in the unplug mask for this purpose (see Xen
commit [2]) and also tidies up the definitions of, and improves the
comments regarding, the previously exiting bits in the protocol.

[1] https://lists.xen.org/archives/html/xen-devel/2017-03/msg02924.html
[2] http://xenbits.xen.org/gitweb/?p=xen.git;a=commit;h=1096aa02

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
hw/i386/xen/xen_platform.c