From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Michael S. Tsirkin" Subject: [PATCH 2/2] qemu: fix up load for msi-x Date: Wed, 1 Jul 2009 14:50:21 +0300 Message-ID: <20090701115021.GC16726@redhat.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii To: qemu-devel@nongnu.org, avi@redhat.com, kvm@vger.kernel.org, aliguori@us.ibm.com, kwolf@redhat.com Return-path: Received: from mx2.redhat.com ([66.187.237.31]:50642 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751016AbZGALuu (ORCPT ); Wed, 1 Jul 2009 07:50:50 -0400 Content-Disposition: inline In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: Add missing load of control vector in virtio Signed-off-by: Michael S. Tsirkin --- hw/virtio.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/hw/virtio.c b/hw/virtio.c index 843be86..e9dd7a0 100644 --- a/hw/virtio.c +++ b/hw/virtio.c @@ -665,6 +665,9 @@ int virtio_load(VirtIODevice *vdev, QEMUFile *f) vdev->config_len = qemu_get_be32(f); qemu_get_buffer(f, vdev->config, vdev->config_len); + if (vdev->nvectors) + qemu_get_be16s(f, &vdev->config_vector); + num = qemu_get_be32(f); for (i = 0; i < num; i++) { -- 1.6.2.2