From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Northup Subject: Re: [PATCH v2] KVM: Introduce direct MSI message injection for in-kernel irqchips Date: Wed, 28 Mar 2012 12:58:37 -0700 Message-ID: References: <4F734EB3.20500@siemens.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Cc: Avi Kivity , Marcelo Tosatti , kvm , "Michael S. Tsirkin" To: Jan Kiszka Return-path: Received: from mail-gy0-f174.google.com ([209.85.160.174]:62196 "EHLO mail-gy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750845Ab2C1T6i (ORCPT ); Wed, 28 Mar 2012 15:58:38 -0400 Received: by ghrr11 with SMTP id r11so1057604ghr.19 for ; Wed, 28 Mar 2012 12:58:38 -0700 (PDT) In-Reply-To: <4F734EB3.20500@siemens.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Mar 28, 2012 at 10:47 AM, Jan Kiszka wrote: [...] > +4.61 KVM_SET_MSI > + > +Capability: KVM_CAP_SET_MSI > +Architectures: x86 > +Type: vm ioctl > +Parameters: struct kvm_msi (in) > +Returns: 0 on success, -1 on error Is this the actual behavior? It looked to me like the successful return value ended up getting set by __apic_accept_irq(), which claims to "Return 1 if successfully added and 0 if discarded".