Re: [Qemu-devel] [PATCH v4 11/16] vfio: ccw: realize VFIO_DEVICE_G(S)ET_IRQ_INFO ioctls

2017-03-21 Thread Dong Jia Shi
* Alex Williamson [2017-03-21 12:47:24 -0600]: [...] > > @@ -458,6 +459,11 @@ enum { > > VFIO_CCW_NUM_REGIONS > > }; > > > > +enum { > > + VFIO_CCW_IO_IRQ_INDEX, > > + VFIO_CCW_NUM_IRQS > > +}; > > + > > /** > > * VFIO_DEVICE_GET_PCI_HOT_RESET_INFO -

Re: [Qemu-devel] [PATCH v4 11/16] vfio: ccw: realize VFIO_DEVICE_G(S)ET_IRQ_INFO ioctls

2017-03-21 Thread Alex Williamson
On Fri, 17 Mar 2017 04:17:38 +0100 Dong Jia Shi wrote: > Realize VFIO_DEVICE_GET_IRQ_INFO ioctl to retrieve > VFIO_CCW_IO_IRQ information. > > Realize VFIO_DEVICE_SET_IRQS ioctl to set an eventfd fd for > VFIO_CCW_IO_IRQ. Once a write operation to the ccw_io_region

[Qemu-devel] [PATCH v4 11/16] vfio: ccw: realize VFIO_DEVICE_G(S)ET_IRQ_INFO ioctls

2017-03-16 Thread Dong Jia Shi
Realize VFIO_DEVICE_GET_IRQ_INFO ioctl to retrieve VFIO_CCW_IO_IRQ information. Realize VFIO_DEVICE_SET_IRQS ioctl to set an eventfd fd for VFIO_CCW_IO_IRQ. Once a write operation to the ccw_io_region was performed, trigger a signal on this fd. Reviewed-by: Pierre Morel