From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gleb Natapov Subject: Re: in-kernel interrupt controller steering Date: Wed, 6 Mar 2013 15:14:24 +0200 Message-ID: <20130306131424.GR11223@redhat.com> References: <469599439.3185295.1362572055225.JavaMail.root@redhat.com> <1777B6DD-B341-4531-BE43-7B0161B1D093@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Paolo Bonzini , kvm@vger.kernel.org, kvm-ppc@vger.kernel.org, Stuart Yoder , Scott Wood , Paul Mackerras , Peter Maydell To: Alexander Graf Return-path: Content-Disposition: inline In-Reply-To: <1777B6DD-B341-4531-BE43-7B0161B1D093@suse.de> Sender: kvm-ppc-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Wed, Mar 06, 2013 at 01:20:39PM +0100, Alexander Graf wrote: > > The problem would only start if KVM_SET_IRQCHIP_TYPE (new name of > > KVM_CREATE_IRQCHIP_ARGS) forced you to later call KVM_CREATE_DEVICE. > > Ah, I see. I don't see why it would. The fact that there is a "LAPIC" doesn't mean that the per-vcpu SET_INTERRUPT ioctl stops working. So if SET_IRQCHIP_TYPE(!none) breaks user-space interrupt controller emulation I would consider that a bug. > For x86 this is the case though. I do not see how it can't be. If LAPIC is emulated in userspace SET_INTERRUPT is used to pass IRQ vector that should be handled as a result of LAPIC emulation. -- Gleb.