From: "Michael S. Tsirkin" <mst@redhat.com> To: qemu-devel@nongnu.org, avi@redhat.com, kvm@vger.kernel.org, aliguori@us.ibm.com, kwolf@redhat.com Subject: [PATCH 2/2] qemu: fix up load for msi-x Date: Wed, 1 Jul 2009 14:50:21 +0300 [thread overview] Message-ID: <20090701115021.GC16726@redhat.com> (raw) In-Reply-To: <cover.1246448461.git.mst@redhat.com> Add missing load of control vector in virtio Signed-off-by: Michael S. Tsirkin <mst@redhat.com> --- 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
WARNING: multiple messages have this Message-ID (diff)
From: "Michael S. Tsirkin" <mst@redhat.com> To: qemu-devel@nongnu.org, avi@redhat.com, kvm@vger.kernel.org, aliguori@us.ibm.com, kwolf@redhat.com Subject: [Qemu-devel] [PATCH 2/2] qemu: fix up load for msi-x Date: Wed, 1 Jul 2009 14:50:21 +0300 [thread overview] Message-ID: <20090701115021.GC16726@redhat.com> (raw) In-Reply-To: <cover.1246448461.git.mst@redhat.com> Add missing load of control vector in virtio Signed-off-by: Michael S. Tsirkin <mst@redhat.com> --- 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
next prev parent reply other threads:[~2009-07-01 11:50 UTC|newest] Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top [not found] <cover.1246448461.git.mst@redhat.com> 2009-07-01 11:50 ` [PATCH 1/2] fix segfault in msix_save Michael S. Tsirkin 2009-07-01 11:50 ` [Qemu-devel] " Michael S. Tsirkin 2009-07-01 12:08 ` Michael S. Tsirkin 2009-07-01 12:27 ` Kevin Wolf 2009-07-01 12:27 ` [Qemu-devel] " Kevin Wolf 2009-07-01 11:50 ` Michael S. Tsirkin [this message] 2009-07-01 11:50 ` [Qemu-devel] [PATCH 2/2] qemu: fix up load for msi-x Michael S. Tsirkin
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20090701115021.GC16726@redhat.com \ --to=mst@redhat.com \ --cc=aliguori@us.ibm.com \ --cc=avi@redhat.com \ --cc=kvm@vger.kernel.org \ --cc=kwolf@redhat.com \ --cc=qemu-devel@nongnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.