]> git.baikalelectronics.ru Git - kernel.git/commit
vfio-ccw: protect the I/O region
authorCornelia Huck <cohuck@redhat.com>
Tue, 8 Jan 2019 14:53:03 +0000 (15:53 +0100)
committerCornelia Huck <cohuck@redhat.com>
Wed, 24 Apr 2019 12:18:51 +0000 (14:18 +0200)
commit05704113becb8bd1588c02bf485a110798220ed3
tree42e9ac6864535d6d1ea1210790dfccf072eb73bb
parent486f7810252c848959a1c553519b0ed489e97806
vfio-ccw: protect the I/O region

Introduce a mutex to disallow concurrent reads or writes to the
I/O region. This makes sure that the data the kernel or user
space see is always consistent.

The same mutex will be used to protect the async region as well.

Reviewed-by: Eric Farman <farman@linux.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
drivers/s390/cio/vfio_ccw_drv.c
drivers/s390/cio/vfio_ccw_ops.c
drivers/s390/cio/vfio_ccw_private.h