]> git.baikalelectronics.ru Git - kernel.git/commit
vfio: ccw: realize VFIO_DEVICE_RESET ioctl
authorDong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
Fri, 17 Mar 2017 03:17:37 +0000 (04:17 +0100)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Fri, 31 Mar 2017 10:55:08 +0000 (12:55 +0200)
commit30f513d89e849f6528c3e2cbd10c2027c25d0124
tree3d7e58feeab5cfbeb2f7f42101055b4b3c4e515e
parent30b0f662f1b2c5cc0c62256e4dfd8c6e32ed8849
vfio: ccw: realize VFIO_DEVICE_RESET ioctl

Introduce VFIO_DEVICE_RESET ioctl for vfio-ccw to make it possible
to hot-reset the device.

We try to achieve a reset by first disabling the subchannel and
then enabling it again: this should clear all state at the subchannel.

Signed-off-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
Message-Id: <20170317031743.40128-11-bjsdjshi@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
drivers/s390/cio/vfio_ccw_ops.c