From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alex Williamson Subject: Re: [PATCH 13/16] kvm: enable MSI-X capabilty for assigned device Date: Fri, 03 Apr 2009 15:27:43 -0600 Message-ID: <1238794063.15558.402.camel@lappy> References: <1237261817-27955-1-git-send-email-sheng@linux.intel.com> <1237261817-27955-14-git-send-email-sheng@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit Cc: Avi Kivity , Marcelo Tosatti , Anthony Liguori , kvm@vger.kernel.org, "Yunbiao (Ben) Lin" To: Sheng Yang Return-path: Received: from g5t0006.atlanta.hp.com ([15.192.0.43]:10817 "EHLO g5t0006.atlanta.hp.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753495AbZDCV2D (ORCPT ); Fri, 3 Apr 2009 17:28:03 -0400 In-Reply-To: <1237261817-27955-14-git-send-email-sheng@linux.intel.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, 2009-03-17 at 11:50 +0800, Sheng Yang wrote: > + if (*ctrl_word & PCI_MSIX_ENABLE) { > + if (assigned_dev_update_msix_mmio(pci_dev) < 0) { > + perror("assigned_dev_update_msix_mmio"); > + return; > + } > + if (kvm_assign_irq(kvm_context, &assigned_irq_data) < 0) { > + perror("assigned_dev_enable_msix: assign irq"); > + return; > + } > + assigned_dev->irq_requested_type = assigned_irq_data.flags; > + } > +} Do we need some disable logic here? If I toggle a bnx2 NIC in a guest, I get the following when it attempts to come back up: MSI-X entry number is zero! assigned_dev_update_msix_mmio: No such device or address Thanks, Alex