From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58940) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfCp4-00043c-BT for qemu-devel@nongnu.org; Thu, 24 Sep 2015 16:08:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZfCp1-00053Y-5A for qemu-devel@nongnu.org; Thu, 24 Sep 2015 16:08:54 -0400 Received: from mail-wi0-f176.google.com ([209.85.212.176]:32825) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZfCp0-00053U-VV for qemu-devel@nongnu.org; Thu, 24 Sep 2015 16:08:51 -0400 Received: by wiclk2 with SMTP id lk2so43968895wic.0 for ; Thu, 24 Sep 2015 13:08:50 -0700 (PDT) From: Eric Auger Date: Thu, 24 Sep 2015 21:08:36 +0100 Message-Id: <1443125319-16691-1-git-send-email-eric.auger@linaro.org> Subject: [Qemu-devel] [PATCH v2 0/3] hw/vfio/platform: irqfd setup changes List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: eric.auger@st.com, eric.auger@linaro.org, qemu-devel@nongnu.org, alex.williamson@redhat.com Cc: christoffer.dall@linaro.org, patches@linaro.org This series fixes a bug related to irqfd setup for edge sensitive IRQs and proposes a new startup sequence for irqfd signaling. The current startup sequence brings some issues with respect to the oncoming ARM IRQ forwarding support. The new startup sequence starts either irqfd signaling or eventfd signaling and there is no risk the IRQ is active nor masked when irqfd/IRQ forwarding is setup. --- v1 -> v2: - add "hw/vfio/platform: change interrupt/unmask fields into pointer" - introduce vfio_irq_is_automasked helper function and for edge-sensitive IRQs, do not allocate/initialize unmask EventNotifier nor call vfio_set_resample_eventfd Eric Auger (3): hw/vfio/platform: irqfd setup sequence update hw/vfio/platform: change interrupt/unmask fields into pointer hw/vfio/platform: do not set resamplefd for edge-sensitive IRQS hw/vfio/platform.c | 116 ++++++++++++++++++++++++---------------- include/hw/vfio/vfio-platform.h | 4 +- trace-events | 4 +- 3 files changed, 75 insertions(+), 49 deletions(-) -- 1.8.3.2