From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MNRJS-0006Ou-O1 for qemu-devel@nongnu.org; Sun, 05 Jul 2009 08:59:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MNRJP-0006NY-69 for qemu-devel@nongnu.org; Sun, 05 Jul 2009 08:59:22 -0400 Received: from [199.232.76.173] (port=57735 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNRJO-0006NS-UO for qemu-devel@nongnu.org; Sun, 05 Jul 2009 08:59:18 -0400 Received: from mx2.redhat.com ([66.187.237.31]:37550) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MNRJO-0004xX-Dk for qemu-devel@nongnu.org; Sun, 05 Jul 2009 08:59:18 -0400 Date: Sun, 5 Jul 2009 15:58:36 +0300 From: "Michael S. Tsirkin" Message-ID: <20090705125836.GC5417@redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: [Qemu-devel] [PATCHv5 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