From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58532) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgU6G-0005x1-LA for qemu-devel@nongnu.org; Fri, 10 Apr 2015 04:15:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YgU6C-0007LH-7Y for qemu-devel@nongnu.org; Fri, 10 Apr 2015 04:15:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47538) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YgU6B-0007LC-VZ for qemu-devel@nongnu.org; Fri, 10 Apr 2015 04:15:36 -0400 Message-ID: <5527869F.5000509@redhat.com> Date: Fri, 10 Apr 2015 10:15:27 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1428652090-5354-1-git-send-email-eric.auger@linaro.org> In-Reply-To: <1428652090-5354-1-git-send-email-eric.auger@linaro.org> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 0/2] ARM adaptations for vhost irqfd setup List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eric Auger , eric.auger@st.com, qemu-devel@nongnu.org, peter.maydell@linaro.org, cornelia.huck@de.ibm.com, borntraeger@de.ibm.com, agraf@suse.de, james.hogan@imgtec.com Cc: aik@ozlabs.ru, kvmarm@lists.cs.columbia.edu, christoffer.dall@linaro.org, patches@linaro.org On 10/04/2015 09:48, Eric Auger wrote: > After the introduction of gicv2m, this series adds missing pieces to > run VIRTIO-PCI with vhost back-end on ARM. > > It is proposed to use the kvm_gsi_direct_mapping modality that sets > the irqfd gsi to the MSI data value. With that trick there is no need > to create a KVM MSI routing entry featuring a different gsi. > > The only adaptation needed for ARM consists in adding an architecture > specific function that converts the MSI data field into the actual > gsi index: there is an offset of 32 between the MSI data content > (SPI ID) and the SPI index that is passed to KVM_IRQFD ioctl. Once > this is done we can set the requested flags to enable vhost: > kvm_gsi_direct_mapping, kvm_msi_via_irqfd_allowed. > > This was tested on XGene, on top of Christoffer's series, > [PATCH 0/3] Add support for for GICv2m and MSIs to arm-virt > (https://lists.gnu.org/archive/html/qemu-devel/2015-04/msg00881.html) > > Best Regards > > Eric > > v1 -> v2: > - abort on i386/mips/s390x since those archs do not support > kvm_gsi_direct_mapping Patch 1 is okay. I guess this series will go through some ARM tree. Paolo