]> www.infradead.org Git - users/jedix/linux-maple.git/commit
xen-blkback: emit active physical device to xenstore
authorAnkur Arora <ankur.a.arora@oracle.com>
Thu, 30 Aug 2018 02:27:34 +0000 (19:27 -0700)
committerBrian Maly <brian.maly@oracle.com>
Mon, 8 Oct 2018 15:43:24 +0000 (11:43 -0400)
commitf75e99776d19aa7e018c734555f6ea897cd5bd96
tree67feca826e93f7f2d2b5eb8185704bc93c678370
parent4fa830e69c4ace96c7e26ba110cf447ddc5a6f15
xen-blkback: emit active physical device to xenstore

The vbd physical-device is set by user-space writing to device's xenbus
path:
/local/domain/0/backend/vbd/1/51712/physical-device = "<major>:<minor>"

However, there is no way for the blkback driver to specify the current
state of the physical-device. Accordingly we add two new backend paths:

.../vbd/<domain>/51712/oracle/active-physical-device = "<major>:<minor>"
.../vbd/<domain>/51712/oracle/physical-device-change-status = "<error>"

which specify the active physical device and any error incurred in
trying to instantiate a new physical device.

Orabug: 28651655

Signed-off-by: Ankur Arora <ankur.a.arora@oracle.com>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: Bhavesh Davda <bhavesh.davda@oracle.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/block/xen-blkback/xenbus.c
include/xen/interface/io/blkif.h