From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH RFC] kvm: enable irq injection from interrupt context Date: Thu, 16 Sep 2010 15:50:33 +0200 Message-ID: <4C9220A9.4070508@redhat.com> References: <20100916101339.GK20864@redhat.com> <20100916102047.GY3008@redhat.com> <20100916104455.GA22254@redhat.com> <20100916105403.GZ3008@redhat.com> <20100916105352.GB22254@redhat.com> <20100916111752.GA3008@redhat.com> <20100916121338.GA23779@redhat.com> <20100916123301.GE3008@redhat.com> <20100916125717.GA24284@redhat.com> <4C921823.5080602@redhat.com> <20100916133828.GA24850@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Gleb Natapov , Marcelo Tosatti , kvm@vger.kernel.org, linux-kernel@vger.kernel.org To: "Michael S. Tsirkin" Return-path: In-Reply-To: <20100916133828.GA24850@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 09/16/2010 03:38 PM, Michael S. Tsirkin wrote: > > > > That's just an implementation detail. Devices either assert INT# or > > they do not. Tying the wires together constitutes an AND gate. > > This gate has to be modelled somewhere, currently it's in qemu's pci > > emulation. > > Right. kvm in kernel has this as well, we need to keep this in > kvm kernel if we want to support level with irqfd. Right, we added the irq_source_id hack for device assignment. What's wrong with letting userspace mediate this, though? > Where it does not belong is individual devices: these > should be able to assert INTx multiple times > and it should have no effect, as per spec. > > Yes. -- error compiling committee.c: too many arguments to function