From: Paolo Bonzini Subject: Re: [PATCH 1/1] x86/apic: Introduce paravirq irq_domain Date: Sat, 13 Aug 2016 08:20:30 +0200 Message-ID: References: <1470924138-17825-1-git-send-email-alex.popov@linux.com> <1325048698.1236199.1470933872152.JavaMail.zimbra@redhat.com> <54704ec6-4b74-9aa3-cccc-1fb7e2412f9a@linux.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: Thomas Gleixner , Christoph Hellwig , Ingo Molnar , Marc Zyngier , "H. Peter Anvin" , Andrew Morton , Kees Cook , Dmitry Vyukov , Jiang Liu , Jason Cooper , Radim Krcmar , Joerg Roedel , linux-kernel@vger.kernel.org, x86@kernel.org, kvm@vger.kernel.org To: alex.popov@linux.com Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 13/08/2016 00:07, Alexander Popov wrote: > I.e. our irq_mask()/irq_unmask() callbacks get irq_desc of the interrupt > which should be masked/unmasked and can ask the hypervisor to stop/start > injecting the vector of that particular interrupt. So just let the irqdomain know about your hypervisor and avoid the pointless indirection through function pointers, and only call arch_init_paravirq_domain in a file specific to your hypervisor. Paolo