From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MBVZa-0008TN-PB for qemu-devel@nongnu.org; Tue, 02 Jun 2009 11:06:43 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MBVZW-0008Me-QC for qemu-devel@nongnu.org; Tue, 02 Jun 2009 11:06:42 -0400 Received: from [199.232.76.173] (port=56887 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MBVZW-0008MP-KA for qemu-devel@nongnu.org; Tue, 02 Jun 2009 11:06:38 -0400 Received: from mx2.redhat.com ([66.187.237.31]:47332) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MBVZV-00047N-Hk for qemu-devel@nongnu.org; Tue, 02 Jun 2009 11:06:38 -0400 Date: Tue, 2 Jun 2009 18:03:08 +0300 From: "Michael S. Tsirkin" Message-ID: <20090602150308.GL6554@redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: [Qemu-devel] [PATCHv2 11/13] qemu: request 3 vectors in virtio-net List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paul Brook , Avi Kivity , qemu-devel@nongnu.org, Carsten Otte , kvm@vger.kernel.org, Rusty Russell , virtualization@lists.linux-foundation.org, Christian Borntraeger , Blue Swirl , Anthony Liguori Request up to 3 vectors in virtio-net. Actual bindings might supply less. Signed-off-by: Michael S. Tsirkin --- hw/virtio-net.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/virtio-net.c b/hw/virtio-net.c index 60aa6da..6118fe3 100644 --- a/hw/virtio-net.c +++ b/hw/virtio-net.c @@ -621,6 +621,7 @@ VirtIODevice *virtio_net_init(DeviceState *dev) n->mac_table.macs = qemu_mallocz(MAC_TABLE_ENTRIES * ETH_ALEN); n->vlans = qemu_mallocz(MAX_VLAN >> 3); + n->vdev.nvectors = 3; register_savevm("virtio-net", virtio_net_id++, VIRTIO_NET_VM_VERSION, virtio_net_save, virtio_net_load, n); -- 1.6.3.1.56.g79e1.dirty