Re: [Qemu-devel] [RESEND PATCH v16 6/6] hw/vfio/platform: add irqfd support

2015-06-26 Thread Alex Williamson
On Fri, 2015-06-26 at 18:31 +0200, Eric Auger wrote: > On 06/26/2015 06:26 PM, Paolo Bonzini wrote: > > > > > > On 26/06/2015 18:21, Alex Williamson wrote: > +#ifdef CONFIG_KVM > +if (kvm_irqfds_enabled() && kvm_resamplefds_enabled() && > +vdev->irqfd_allowed) { >

Re: [Qemu-devel] [RESEND PATCH v16 6/6] hw/vfio/platform: add irqfd support

2015-06-26 Thread Eric Auger
On 06/26/2015 06:26 PM, Paolo Bonzini wrote: > > > On 26/06/2015 18:21, Alex Williamson wrote: +#ifdef CONFIG_KVM +if (kvm_irqfds_enabled() && kvm_resamplefds_enabled() && +vdev->irqfd_allowed) { +sbc->connect_irq_notifier = vfio_start_irqfd_injection; >> S

Re: [Qemu-devel] [RESEND PATCH v16 6/6] hw/vfio/platform: add irqfd support

2015-06-26 Thread Paolo Bonzini
On 26/06/2015 18:21, Alex Williamson wrote: >> > +#ifdef CONFIG_KVM >> > +if (kvm_irqfds_enabled() && kvm_resamplefds_enabled() && >> > +vdev->irqfd_allowed) { >> > +sbc->connect_irq_notifier = vfio_start_irqfd_injection; > Should we be abstracting this to a > sysbus_register_

Re: [Qemu-devel] [RESEND PATCH v16 6/6] hw/vfio/platform: add irqfd support

2015-06-26 Thread Alex Williamson
On Mon, 2015-06-15 at 17:33 +0100, Eric Auger wrote: > This patch aims at optimizing IRQ handling using irqfd framework. > > Instead of handling the eventfds on user-side they are handled on > kernel side using > - the KVM irqfd framework, > - the VFIO driver virqfd framework. > > the virtual IRQ

Re: [Qemu-devel] [RESEND PATCH v16 6/6] hw/vfio/platform: add irqfd support

2015-06-26 Thread Eric Auger
On 06/26/2015 01:57 PM, Peter Maydell wrote: > On 15 June 2015 at 17:33, Eric Auger wrote: >> This patch aims at optimizing IRQ handling using irqfd framework. >> >> Instead of handling the eventfds on user-side they are handled on >> kernel side using >> - the KVM irqfd framework, >> - the VFIO d

Re: [Qemu-devel] [RESEND PATCH v16 6/6] hw/vfio/platform: add irqfd support

2015-06-26 Thread Peter Maydell
On 15 June 2015 at 17:33, Eric Auger wrote: > This patch aims at optimizing IRQ handling using irqfd framework. > > Instead of handling the eventfds on user-side they are handled on > kernel side using > - the KVM irqfd framework, > - the VFIO driver virqfd framework. > > the virtual IRQ completio

[Qemu-devel] [RESEND PATCH v16 6/6] hw/vfio/platform: add irqfd support

2015-06-15 Thread Eric Auger
This patch aims at optimizing IRQ handling using irqfd framework. Instead of handling the eventfds on user-side they are handled on kernel side using - the KVM irqfd framework, - the VFIO driver virqfd framework. the virtual IRQ completion is trapped at interrupt controller This removes the need