From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [kvmarm] [RFC PATCH 0/3] KVM: ARM: Get rid of hardcoded VGIC addresses Date: Fri, 26 Oct 2012 13:57:54 +0200 Message-ID: <508A7AC2.7040400@redhat.com> 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> 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: Benjamin Herrenschmidt Return-path: Received: from mx1.redhat.com ([209.132.183.28]:47616 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932403Ab2JZL6U (ORCPT ); Fri, 26 Oct 2012 07:58:20 -0400 In-Reply-To: <1351249794.12271.27.camel@pasglop> Sender: kvm-owner@vger.kernel.org List-ID: 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"). 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. Paolo