qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Jason Wang <jasowang@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH] vhost: Fix address calculation in vhost_dev_sync_region()
Date: Sun, 28 Nov 2010 10:10:35 +0200	[thread overview]
Message-ID: <20101128081035.GA2249@redhat.com> (raw)
In-Reply-To: <20101127140506.16888.96397.stgit@dhcp-91-7.nay.redhat.com.englab.nay.redhat.com>

On Sat, Nov 27, 2010 at 10:05:07PM +0800, Jason Wang wrote:
> We still need advance address even we find there's no dirty pages in
> current chunk.
> 
> Signed-off-by: Jason Wang <jasowang@redhat.com>
> ---
>  hw/vhost.c |    1 +
>  1 files changed, 1 insertions(+), 0 deletions(-)

Applied, thanks!

> diff --git a/hw/vhost.c b/hw/vhost.c
> index 8586f66..6082da2 100644
> --- a/hw/vhost.c
> +++ b/hw/vhost.c
> @@ -37,6 +37,7 @@ static void vhost_dev_sync_region(struct vhost_dev *dev,
>          /* We first check with non-atomic: much cheaper,
>           * and we expect non-dirty to be the common case. */
>          if (!*from) {
> +            addr += VHOST_LOG_CHUNK;
>              continue;
>          }
>          /* Data must be read atomically. We don't really

      reply	other threads:[~2010-11-28  8:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-27 14:05 [Qemu-devel] [PATCH] vhost: Fix address calculation in vhost_dev_sync_region() Jason Wang
2010-11-28  8:10 ` Michael S. Tsirkin [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=20101128081035.GA2249@redhat.com \
    --to=mst@redhat.com \
    --cc=jasowang@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: 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).