From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Kiszka Subject: Re: [kvmarm] [RFC PATCH 0/3] KVM: ARM: Get rid of hardcoded VGIC addresses Date: Fri, 26 Oct 2012 14:41:37 +0200 Message-ID: <508A8501.9070108@siemens.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> <508A7AC2.7040400@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Paolo Bonzini , Benjamin Herrenschmidt , Paul Mackerras , Christoffer Dall , Alexander Graf , "kvmarm@lists.cs.columbia.edu" , "kvm@vger.kernel.org" , kvm-ppc To: Peter Maydell Return-path: Received: from goliath.siemens.de ([192.35.17.28]:24446 "EHLO goliath.siemens.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758630Ab2JZMlt (ORCPT ); Fri, 26 Oct 2012 08:41:49 -0400 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On 2012-10-26 14:08, Peter Maydell wrote: > On 26 October 2012 12:57, Paolo Bonzini wrote: >> 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. > > So SET_GSI_ROUTING sets the routing for MSIs? Very logical... See my reply to Ben: It is used for MSIs as well, but not only. The concept is absolutely generic, you just need to define specific target types and provide ways to associate specific sources with a virtual IRQ number ("GSI"). Jan -- Siemens AG, Corporate Technology, CT RTC ITP SDP-DE Corporate Competence Center Embedded Linux