Re: [Qemu-devel] Question about the vfio device interrupt

2019-05-15 Thread Li Qiang
Alex Williamson 于2019年5月15日周三 下午10:54写道: > On Wed, 15 May 2019 17:27:52 +0300 > Maxim Levitsky wrote: > > > Hi! > > > > Let me add my 0.2 cents to this discussion by sharing my summary of INTx > emulation in VFIO: > > > > COMMON: > > * real interrupt is signaled in the kernel > > * vfio-pci

Re: [Qemu-devel] Question about the vfio device interrupt

2019-05-15 Thread Alex Williamson
On Wed, 15 May 2019 17:27:52 +0300 Maxim Levitsky wrote: > Hi! > > Let me add my 0.2 cents to this discussion by sharing my summary of INTx > emulation in VFIO: > > COMMON: > * real interrupt is signaled in the kernel > * vfio-pci kernel interrupt hanlder (vfio_intx_handler), masks the INTx

Re: [Qemu-devel] Question about the vfio device interrupt

2019-05-15 Thread Maxim Levitsky
Hi! Let me add my 0.2 cents to this discussion by sharing my summary of INTx emulation in VFIO: COMMON: * real interrupt is signaled in the kernel * vfio-pci kernel interrupt hanlder (vfio_intx_handler), masks the INTx flag * vfio-pci kernel interrupt handler triggers an eventfd, if the

Re: [Qemu-devel] Question about the vfio device interrupt

2019-05-15 Thread Alex Williamson
On Wed, 15 May 2019 18:22:54 +0800 Li Qiang wrote: > Auger Eric 于2019年5月15日周三 下午6:16写道: > > > Hi, > > > > On 5/15/19 12:01 PM, Li Qiang wrote: > > > Hello Paolo, Alex and all, > > > > > > In vfio_intx_enable_kvm(qemu) I see we associate a resamplefd with the > > > umask

Re: [Qemu-devel] Question about the vfio device interrupt

2019-05-15 Thread Li Qiang
Auger Eric 于2019年5月15日周三 下午6:16写道: > Hi, > > On 5/15/19 12:01 PM, Li Qiang wrote: > > Hello Paolo, Alex and all, > > > > In vfio_intx_enable_kvm(qemu) I see we associate a resamplefd with the > > umask function(vfio_pci_intx_unmask_handler in linux). > > > > irq_set = g_malloc0(argsz); > >

Re: [Qemu-devel] Question about the vfio device interrupt

2019-05-15 Thread Auger Eric
Hi, On 5/15/19 12:01 PM, Li Qiang wrote: > Hello Paolo, Alex and all, > > In vfio_intx_enable_kvm(qemu) I see we associate a resamplefd with the > umask function(vfio_pci_intx_unmask_handler in linux). > > irq_set = g_malloc0(argsz); > irq_set->argsz = argsz; > irq_set->flags =

[Qemu-devel] Question about the vfio device interrupt

2019-05-15 Thread Li Qiang
Hello Paolo, Alex and all, In vfio_intx_enable_kvm(qemu) I see we associate a resamplefd with the umask function(vfio_pci_intx_unmask_handler in linux). irq_set = g_malloc0(argsz); irq_set->argsz = argsz; irq_set->flags = VFIO_IRQ_SET_DATA_EVENTFD | VFIO_IRQ_SET_ACTION_UNMASK;