From: Christian Borntraeger Subject: Re: [PATCH RFC 0/8] virtio: add guest MSI-X support Date: Mon, 27 Apr 2009 16:00:30 +0200 Message-ID: <200904271600.30599.borntraeger@de.ibm.com> References: <20090427123136.GA1152@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: Rusty Russell , virtualization@lists.linux-foundation.org, Anthony Liguori , kvm@vger.kernel.org, avi@redhat.com To: "Michael S. Tsirkin" Return-path: Received: from mtagate3.uk.ibm.com ([195.212.29.136]:58434 "EHLO mtagate3.uk.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752897AbZD0OAh (ORCPT ); Mon, 27 Apr 2009 10:00:37 -0400 Received: from d06nrmr1806.portsmouth.uk.ibm.com (d06nrmr1806.portsmouth.uk.ibm.com [9.149.39.193]) by mtagate3.uk.ibm.com (8.14.3/8.13.8) with ESMTP id n3RE0XJi483294 for ; Mon, 27 Apr 2009 14:00:33 GMT Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by d06nrmr1806.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n3RE0Wwl3465440 for ; Mon, 27 Apr 2009 15:00:32 +0100 Received: from d06av04.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n3RE0V1l004996 for ; Mon, 27 Apr 2009 15:00:32 +0100 In-Reply-To: <20090427123136.GA1152@redhat.com> Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: Am Monday 27 April 2009 14:31:36 schrieb Michael S. Tsirkin: > Add optional MSI-X support: use a vector per virtqueue with > fallback to a common vector and finally to regular interrupt. > Teach all drivers to use it. > > I added 2 new virtio operations: request_vqs/free_vqs because MSI > needs to know the total number of vectors upfront. > > Signed-off-by: Michael S. Tsirkin I dont know, if that is feasible for MSI, but the transport(virtio_pci) should already know the number of virtqueues, which should match the number of vectors, no? In fact, the transport has to have a way of getting the number of virtqeues because find_vq returns ENOENT on invalid index numbers. Christian