From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rusty Russell Subject: Re: [PATCH 1/8] virtio: add request_vqs/free_vqs operations Date: Mon, 4 May 2009 21:02:20 +0930 Message-ID: <200905042102.21218.rusty@rustcorp.com.au> References: <20090427123153.GA1156@redhat.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Cc: virtualization@lists.linux-foundation.org, Anthony Liguori , kvm@vger.kernel.org, avi@redhat.com To: "Michael S. Tsirkin" Return-path: Received: from ozlabs.org ([203.10.76.45]:60956 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752719AbZEDLcb (ORCPT ); Mon, 4 May 2009 07:32:31 -0400 In-Reply-To: <20090427123153.GA1156@redhat.com> Content-Disposition: inline Sender: kvm-owner@vger.kernel.org List-ID: On Mon, 27 Apr 2009 10:01:53 pm Michael S. Tsirkin wrote: > This adds 2 new optional virtio operations: request_vqs/free_vqs. They will be > used for MSI support, because MSI needs to know the total number of vectors > upfront. > > Signed-off-by: Michael S. Tsirkin Hi Michael, Thanks for this work! But this interface is horrible. Either probe for the number of vqs in virtio_pci, or change find_vq to int (*find_vqs)(struct virtio_device *, unsigned max, struct virtqueue *vqs[]); Thanks, Rusty.