From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Herrenschmidt Subject: Re: [kvmarm] [RFC PATCH 0/3] KVM: ARM: Get rid of hardcoded VGIC addresses Date: Fri, 26 Oct 2012 21:37:18 +1100 Message-ID: <1351247838.12271.10.camel@pasglop> References: <1350173065-35350-1-git-send-email-c.dall@virtualopensystems.com> <507F172D.2030802@suse.de> <20121017221022.GA4333@bloggs.ozlabs.ibm.com> <1350518331.4678.114.camel@pasglop> <508675FC.7090901@siemens.com> <20121024005017.GA17834@bloggs.ozlabs.ibm.com> <5089656A.9010704@redhat.com> <5089699D.3050004@siemens.com> <50898479.8060402@redhat.com> <1351194021.2728.170.camel@pasglop> <508A5EE3.6070709@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Jan Kiszka , Paul Mackerras , Christoffer Dall , Alexander Graf , "kvmarm@lists.cs.columbia.edu" , "kvm@vger.kernel.org" , kvm-ppc , Peter Maydell To: Paolo Bonzini Return-path: In-Reply-To: <508A5EE3.6070709@redhat.com> Sender: kvm-ppc-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Fri, 2012-10-26 at 11:58 +0200, Paolo Bonzini wrote: > Il 25/10/2012 21:40, Benjamin Herrenschmidt ha scritto: > >> > Probably you do need a variant of KVM_CREATE_IRQCHIP to create the > >> > IOAPICs/source controllers (Paul's proposal at > >> > http://permalink.gmane.org/gmane.comp.emulators.kvm.powerpc.devel/5674 > >> > for example), assign chip ids to them, set the number of input lines, > >> > etc. but the configuration should work well with the existing ioctls, > >> > with no limit on the number of sources. > > But what do you mean by "configuration" really ? I don't see anything in > > common there. > > Wiring which MSI-X interrupts go to which source controllers. If you > have one source controller per PCI bridge, you need to tell the kernel > the mapping between MSI messages interrupts and PCI bridges, and update > it whenever the MSI masking changes. Not sure I get it. Are you talking in the context of PCI pass-through ? Each PCI bridge on POWER has its own set of MSIs though for emulated bridges it's a non-issue, it's all dealt with by qemu, so I'm not sure what you mean here. > The other problem is configuring the redirection table. If you need >64 > sources you need ioctls like KVM_GET/SET_IRQCHIP_ONE_REG. Well, all of that is totally specific to the IO-APIC design & limitations as far as I can tell. What is the "redirection table" ? Cheers, Ben.