Re: [Qemu-devel] [PATCH v6 09/13] vfio/ccw: get irqs info and set the eventfd fd

2017-05-01 Thread Dong Jia Shi
* Dong Jia Shi [2017-05-02 13:37:38 +0800]: [...] > > > +static void vfio_ccw_unregister_io_notifier(VFIOCCWDevice *vcdev) > > > +{ > > > +struct vfio_irq_set *irq_set; > > > +size_t argsz; > > > +int32_t *pfd; > > > + > > > +argsz = sizeof(*irq_set) + sizeof(*pfd); > > > +irq

Re: [Qemu-devel] [PATCH v6 09/13] vfio/ccw: get irqs info and set the eventfd fd

2017-05-01 Thread Dong Jia Shi
* Auger Eric [2017-05-01 13:08:45 +0200]: Hi Eric, > Hi, > On 28/04/2017 15:09, Dong Jia Shi wrote: > > 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

Re: [Qemu-devel] [PATCH v6 09/13] vfio/ccw: get irqs info and set the eventfd fd

2017-05-01 Thread Auger Eric
Hi, On 28/04/2017 15:09, Dong Jia Shi wrote: > 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, th

[Qemu-devel] [PATCH v6 09/13] vfio/ccw: get irqs info and set the eventfd fd

2017-04-28 Thread Dong Jia Shi
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