From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44794) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VP4vD-0001h2-6x for qemu-devel@nongnu.org; Thu, 26 Sep 2013 02:19:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VP4us-000875-Lx for qemu-devel@nongnu.org; Thu, 26 Sep 2013 02:19:31 -0400 Received: from e23smtp02.au.ibm.com ([202.81.31.144]:40051) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VP4us-00086G-2d for qemu-devel@nongnu.org; Thu, 26 Sep 2013 02:19:10 -0400 Received: from /spool/local by e23smtp02.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 26 Sep 2013 16:19:04 +1000 From: Alexey Kardashevskiy Date: Thu, 26 Sep 2013 16:18:47 +1000 Message-Id: <1380176328-21320-14-git-send-email-aik@ozlabs.ru> In-Reply-To: <1380176328-21320-1-git-send-email-aik@ozlabs.ru> References: <1380176328-21320-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [PATCH v5 13/14] xics-kvm: enable irqfd for MSI List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexey Kardashevskiy , qemu-ppc@nongnu.org, Alexander Graf , Anthony Liguori , David Gibson This enables IRQFD support for sPAPR. The feature decreases the latency of interrupt handling. To enable IRQFD for MSI, this sets kvm_gsi_direct_mapping to true which enables direct MSI mapping. To enable IRQFD for LSI (level triggered INTx interrupts), a PCI host bus callback is required. The patch for that is coming next. Signed-off-by: Alexey Kardashevskiy --- hw/intc/xics_kvm.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hw/intc/xics_kvm.c b/hw/intc/xics_kvm.c index a2ccafa..c203646 100644 --- a/hw/intc/xics_kvm.c +++ b/hw/intc/xics_kvm.c @@ -441,6 +441,12 @@ static void xics_kvm_realize(DeviceState *dev, Error **errp) goto fail; } } + + kvm_kernel_irqchip = true; + kvm_irqfds_allowed = true; + kvm_msi_via_irqfd_allowed = true; + kvm_gsi_direct_mapping = true; + return; fail: -- 1.8.4.rc4