From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH 2/3] KVM: Add gsi_msg_pending_bitmap for MSI-X Date: Tue, 17 Feb 2009 18:09:49 +0000 Message-ID: <499AFD6D.5090607@redhat.com> References: <1234339731-3195-1-git-send-email-sheng@linux.intel.com> <1234339731-3195-3-git-send-email-sheng@linux.intel.com> <20090212195118.GA19749@amt.cnet> <200902131137.47240.sheng@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Marcelo Tosatti , kvm@vger.kernel.org To: Sheng Yang Return-path: Received: from mx2.redhat.com ([66.187.237.31]:35436 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752928AbZBQSJU (ORCPT ); Tue, 17 Feb 2009 13:09:20 -0500 In-Reply-To: <200902131137.47240.sheng@linux.intel.com> Sender: kvm-owner@vger.kernel.org List-ID: Sheng Yang wrote: >>> + if (assigned_dev->irq_requested_type == KVM_ASSIGNED_DEV_MSIX) { >>> + u32 gsi; >>> + gsi = find_gsi_from_host_irq(assigned_dev, irq); >>> + if (gsi == 0) >>> + return IRQ_HANDLED; >>> >> So you chose GSI == 0 as invalid because of x86 assumptions? Or is there >> any other reason? >> > > Yeah, it based on x86 and IA64 IRQ 0 can't be used by MSI-X. And only x86 > support MSI-X now(and IA64 would follow later). > gsi != irq... as used in kvm it is just a cookie and is never visible to the guest. I'd prefer an illegal value here. Also, please repost the entire patchset so I can be sure I apply the latest; too many versions floating around. -- I have a truly marvellous patch that fixes the bug which this signature is too narrow to contain.