From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Auger Subject: Re: [RFC 0/6] KVM: arm/arm64: gsi routing support Date: Tue, 23 Jun 2015 09:50:10 +0200 Message-ID: <55890FB2.2090609@linaro.org> References: <1434649258-27065-1-git-send-email-eric.auger@linaro.org> <5587CA18.6050101@arm.com> <5587D398.8040002@linaro.org> <052d01d0ad87$8a2a90e0$9e7fb2a0$@samsung.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: christoffer.dall@linaro.org, 'Marc Zyngier' , kvmarm@lists.cs.columbia.edu, kvm@vger.kernel.org To: Pavel Fedin , 'Andre Przywara' , eric.auger@st.com Return-path: Received: from mail-wg0-f41.google.com ([74.125.82.41]:33845 "EHLO mail-wg0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753385AbbFWHub (ORCPT ); Tue, 23 Jun 2015 03:50:31 -0400 Received: by wgqq4 with SMTP id q4so1963940wgq.1 for ; Tue, 23 Jun 2015 00:50:30 -0700 (PDT) In-Reply-To: <052d01d0ad87$8a2a90e0$9e7fb2a0$@samsung.com> Sender: kvm-owner@vger.kernel.org List-ID: Hi Pavel, On 06/23/2015 09:38 AM, Pavel Fedin wrote: > Hello! > >> What is done currently at qemu level for other archs - if I understand >> it correctly - is there is static GSI routing for standard IRQ. > > Yes, this is correct. GSI number = SPI number for ARM. Also something similar for MIPS (haven't > study that). > >> For MSI >> irqfd setup they use spare gsi number not yet used for GSI routing < max >> route number. > > No. > On ARM with vGICv2m MSI data is effectively IRQ offset, with base being 32. So, original convention > works without any change, they simply retrieve SPI number from MSI data and set up irqfd to that > SPI. No allocation is done. Yes on ARM we use gsi direct mapping feature. I was talking about what is done without this "gsi direct mapping" feature. In that case the low GSI numbers are used by irqchip routing entries. So kvm_irqchip_get_virq returns a gsi beyond the irqchip routed gsi's. Eric > Allocation is done only on x86, with routing. They just allocate GSI numbers starting from zero and > route them to something (either irqchip or MSI). > > Kind regards, > Pavel Fedin > Expert Engineer > Samsung Electronics Research center Russia > >