From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MNQ62-0007t0-9L for qemu-devel@nongnu.org; Sun, 05 Jul 2009 07:41:26 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MNQ5x-0007r3-OQ for qemu-devel@nongnu.org; Sun, 05 Jul 2009 07:41:25 -0400 Received: from [199.232.76.173] (port=50320 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNQ5x-0007qz-JZ for qemu-devel@nongnu.org; Sun, 05 Jul 2009 07:41:21 -0400 Received: from mx2.redhat.com ([66.187.237.31]:41167) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MNQ5x-00076H-5x for qemu-devel@nongnu.org; Sun, 05 Jul 2009 07:41:21 -0400 Date: Sun, 5 Jul 2009 14:40:39 +0300 From: "Michael S. Tsirkin" Message-ID: <20090705114039.GC4798@redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: [Qemu-devel] [PATCHv4 2/5] qemu/virtio: remove control vector save List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, avi@redhat.com, kvm@vger.kernel.org, aliguori@us.ibm.com, kwolf@redhat.com, glommer@redhat.com, blauwirbel@gmail.com control vector is already saved/restored by virtio-pci, it does not need to be done in virtio. Signed-off-by: Michael S. Tsirkin --- hw/virtio.c | 3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/hw/virtio.c b/hw/virtio.c index 843be86..41e7ca2 100644 --- a/hw/virtio.c +++ b/hw/virtio.c @@ -626,9 +626,6 @@ void virtio_save(VirtIODevice *vdev, QEMUFile *f) qemu_put_be32(f, vdev->config_len); qemu_put_buffer(f, vdev->config, vdev->config_len); - if (vdev->nvectors) - qemu_put_be16s(f, &vdev->config_vector); - for (i = 0; i < VIRTIO_PCI_QUEUE_MAX; i++) { if (vdev->vq[i].vring.num == 0) break; -- 1.6.2.2