]> Git Repo - qemu.git/commit
vfio/ccw: get irqs info and set the eventfd fd
authorDong Jia Shi <[email protected]>
Wed, 17 May 2017 00:48:09 +0000 (02:48 +0200)
committerCornelia Huck <[email protected]>
Fri, 19 May 2017 10:29:01 +0000 (12:29 +0200)
commit4886b3e9f00683324c0368b1dec8acb964f4a439
tree02e4ecf7f06f1263e4de94673f07e9fd3ef529ed
parentc14e706ce9a4354c803e8f64bd12148831f888a3
vfio/ccw: get irqs info and set the eventfd fd

vfio-ccw resorts to the eventfd mechanism to communicate with userspace.
We fetch the irqs info via the ioctl VFIO_DEVICE_GET_IRQ_INFO,
register a event notifier to get the eventfd fd which is sent
to kernel via the ioctl VFIO_DEVICE_SET_IRQS, then we can implement
read operation once kernel sends the signal.

Reviewed-by: Eric Auger <[email protected]>
Acked-by: Alex Williamson <[email protected]>
Signed-off-by: Dong Jia Shi <[email protected]>
Message-Id: <20170517004813[email protected]>
Signed-off-by: Cornelia Huck <[email protected]>
hw/vfio/ccw.c
This page took 0.025869 seconds and 4 git commands to generate.