Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753009AbbGETkw (ORCPT ); Sun, 5 Jul 2015 15:40:52 -0400 Received: from mail-la0-f45.google.com ([209.85.215.45]:35765 "EHLO mail-la0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752467AbbGETkm (ORCPT ); Sun, 5 Jul 2015 15:40:42 -0400 Date: Sun, 5 Jul 2015 21:40:42 +0200 From: Christoffer Dall To: Eric Auger Cc: eric.auger@st.com, linux-arm-kernel@lists.infradead.org, marc.zyngier@arm.com, andre.przywara@arm.com, kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, patches@linaro.org, p.fedin@samsung.com, pbonzini@redhat.com Subject: Re: [PATCH 0/7] KVM: arm/arm64: gsi routing support Message-ID: <20150705194042.GE3869@cbox> References: <1435592237-17924-1-git-send-email-eric.auger@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1435592237-17924-1-git-send-email-eric.auger@linaro.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 3021 Lines: 74 On Mon, Jun 29, 2015 at 05:37:10PM +0200, Eric Auger wrote: > With the advent of GICv3 ITS in-kernel emulation, KVM GSI routing > appears to be requested. More specifically MSI routing is needed. > irqchip routing does not sound to be really useful on arm but usage of > MSI routing also mandates to integrate irqchip routing. The initial > implementation of irqfd on arm must be upgraded with the integration > of kvm irqchip.c code and the implementation of its standard hooks > in the architecture specific part. > > In case KVM_SET_GSI_ROUTING ioctl is not called, a default routing > table with flat irqchip routing entries is built enabling to inject gsi > corresponding to the SPI indexes seen by the guest. > > As soon as KVM_SET_GSI_ROUTING is called, user-space overwrites this > default routing table and is responsible for building the whole routing > table. > > for arm/arm64 KVM_SET_GSI_ROUTING has a limited support: > - only applies to KVM_IRQFD and not to KVM_IRQ_LINE > > - irqchip routing was tested on Calxeda midway (VFIO with irqfd) > - MSI routing without GICv3 ITS was tested using APM Xgene-I > (qemu VIRTIO-PCI vhost net without gsi_direct_mapping). > - MSI routing with GICv2 ITS is NOT yet tested. Do you mean GICv3 ITS here? > > Code can be found at https://git.linaro.org/people/eric.auger/linux.git/shortlog/refs/heads/v4.1-gsi-routing-patch > > It applies on Andre's [PATCH 00/13] arm64: KVM: GICv3 ITS emulation > (http://www.spinics.net/lists/kvm/msg117402.html) > > History: > > RFC -> PATCH: > - clearly state limited support on arm/arm64: > KVM_IRQ_LINE not impacted by GSI routing > - add default routing table feature (new patch file) > - changed uapi to use padding field area > - reword api.txt > > > Eric Auger (7): > KVM: api: add kvm_irq_routing_extended_msi > KVM: kvm_host: add kvm_extended_msi > KVM: irqchip: convey devid to kvm_set_msi > KVM: arm/arm64: enable irqchip routing > KVM: arm/arm64: build a default routing table > KVM: arm/arm64: enable MSI routing > KVM: arm: implement kvm_set_msi by gsi direct mapping > > Documentation/virtual/kvm/api.txt | 30 ++++++++-- > arch/arm/include/asm/kvm_host.h | 2 + > arch/arm/kvm/Kconfig | 3 + > arch/arm/kvm/Makefile | 2 +- > arch/arm64/include/asm/kvm_host.h | 1 + > arch/arm64/kvm/Kconfig | 2 + > arch/arm64/kvm/Makefile | 2 +- > include/kvm/arm_vgic.h | 9 --- > include/linux/kvm_host.h | 10 ++++ > include/uapi/linux/kvm.h | 6 +- > virt/kvm/arm/vgic.c | 117 ++++++++++++++++++++++++++++---------- > virt/kvm/irqchip.c | 20 +++++-- > 12 files changed, 154 insertions(+), 50 deletions(-) > > -- > 1.9.1 > -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/