s390x/css: introduce and realize ccw-request callback
commit8ca2b376b47fff58f7ab6f16d86a66d4af3a2be2
authorXiao Feng Ren <renxiaof@linux.vnet.ibm.com>
Wed, 17 May 2017 00:48:10 +0000 (17 02:48 +0200)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Fri, 19 May 2017 10:29:01 +0000 (19 12:29 +0200)
treee8cfa27be91fd4fc8b4af613163635d8c400d72a
parent4886b3e9f00683324c0368b1dec8acb964f4a439
s390x/css: introduce and realize ccw-request callback

Introduce a new callback on subchannel to handle ccw-request.
Realize the callback in vfio-ccw device. Besides, resort to
the event notifier handler to handling the ccw-request results.
1. Pread the I/O results via MMIO region.
2. Update the scsw info to guest.
3. Inject an I/O interrupt to notify guest the I/O result.

Acked-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Xiao Feng Ren <renxiaof@linux.vnet.ibm.com>
Signed-off-by: Dong Jia Shi <bjsdjshi@linux.vnet.ibm.com>
Message-Id: <20170517004813.58227-11-bjsdjshi@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/s390x/css.c
hw/vfio/ccw.c
include/hw/s390x/css.h
include/hw/s390x/s390-ccw.h