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: Sat, 27 Oct 2012 07:21:31 +1100 Message-ID: <1351282891.12271.60.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> <508A62BB.4010209@redhat.com> <1351248264.12271.17.camel@pasglop> <508A6D5A.1030007@siemens.com> <1351249794.12271.27.camel@pasglop> <508A7AC2.7040400@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: Jan Kiszka , Peter Maydell , Paul Mackerras , Christoffer Dall , Alexander Graf , "kvmarm@lists.cs.columbia.edu" , "kvm@vger.kernel.org" , kvm-ppc To: Paolo Bonzini Return-path: In-Reply-To: <508A7AC2.7040400@redhat.com> Sender: kvm-ppc-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Fri, 2012-10-26 at 13:57 +0200, Paolo Bonzini wrote: > Il 26/10/2012 13:09, Benjamin Herrenschmidt ha scritto: > > The only cases I can think of are the association between a virtual > > interrupt (ie, an interrupt in the guest interrupt number space) and an > > in-kernel source for that interrupt, ie, vhost and PCI pass-through > > essentially. > > If you exclude old-style PCI pass-through and limit yourself to vhost > and VFIO, you can treat irqfd as "the" in-kernel source of the > interrupt. Then you need a mapping between MSIs and numbers used in > KVM_IRQFD ("GSIs"). Argh. Ok, I get that we need a mapping between an irqfd and a global number, I don't see where MSIs come into the picture at all here. At least for us they don't. > This is what KVM_SET_GSI_ROUTING modifies, and basically the mapping is > modified every time a vector is masked/unmasked in the MSI-X table. Right and that doesn't make sense for us. In fact I don't understand how it makes sense for x86 either, but that's because I don't understand how the APIC works I suppose. Ben.