qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: kwolf@redhat.com, famz@redhat.com,
	zhang.zhanghailiang@huawei.com, mst@redhat.com,
	qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2 for-2.3] virtio-blk: correctly dirty guest memory
Date: Wed, 8 Apr 2015 10:42:59 +0100	[thread overview]
Message-ID: <20150408094259.GE28835@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <1427997044-392-1-git-send-email-pbonzini@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 986 bytes --]

On Thu, Apr 02, 2015 at 07:50:44PM +0200, Paolo Bonzini wrote:
> After qemu_iovec_destroy, the QEMUIOVector's size is zeroed and
> the zero size ultimately is used to compute virtqueue_push's len
> argument.  Therefore, reads from virtio-blk devices did not
> migrate their results correctly.  (Writes were okay).
> 
> Save the size in virtio_blk_handle_request, and use it when the request
> is completed.
> 
> Based on a patch by Wen Congyang.
> 
> Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
>  hw/block/dataplane/virtio-blk.c |  3 +--
>  hw/block/virtio-blk.c           | 13 ++++++++++++-

Applied to my block tree for QEMU 2.3-rc3:
https://github.com/stefanha/qemu/commits/block

I can still drop it if there is an objection, so just let me know.
Several related points have been mentioned but they are orthogonal and
less urgent.  Please address them in separate QEMU 2.4 patches.

Stefan

[-- Attachment #2: Type: application/pgp-signature, Size: 473 bytes --]

      parent reply	other threads:[~2015-04-08  9:43 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-02 17:50 [Qemu-devel] [PATCH v2 for-2.3] virtio-blk: correctly dirty guest memory Paolo Bonzini
2015-04-02 17:54 ` Michael S. Tsirkin
2015-04-02 17:57   ` Paolo Bonzini
2015-04-02 18:46     ` Michael S. Tsirkin
2015-04-02 18:53       ` Paolo Bonzini
2015-04-02 19:17         ` Michael S. Tsirkin
2015-04-03  4:13 ` Li Zhijian
2015-04-07 14:11 ` Stefan Hajnoczi
2015-04-08  9:38   ` Stefan Hajnoczi
2015-04-08  9:42 ` Stefan Hajnoczi [this message]

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=20150408094259.GE28835@stefanha-thinkpad.redhat.com \
    --to=stefanha@redhat.com \
    --cc=famz@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=zhang.zhanghailiang@huawei.com \
    /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: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).