All of lore.kernel.org
 help / color / mirror / Atom feed
From: Juan Quintela <quintela@redhat.com>
To: Alexey Perevalov <a.perevalov@samsung.com>
Cc: qemu-devel@nongnu.org, peterx@redhat.com, i.maximets@samsung.com,
	dgilbert@redhat.com
Subject: Re: [Qemu-devel] [PATCH v3 2/3] migration: introduce qemu_ufd_copy_ioctl helper
Date: Wed, 21 Jun 2017 14:11:38 +0200	[thread overview]
Message-ID: <87podxk0at.fsf@secure.laptop> (raw)
In-Reply-To: <1497640120-10729-3-git-send-email-a.perevalov@samsung.com> (Alexey Perevalov's message of "Fri, 16 Jun 2017 22:08:39 +0300")

Alexey Perevalov <a.perevalov@samsung.com> wrote:
> Just for placing auxilary operations inside helper,
> auxilary operations like: track received pages,
> notify about copying operation in futher patches.
>
> Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
> Reviewed-by: Peter Xu <peterx@redhat.com>
> Signed-off-by: Alexey Perevalov <a.perevalov@samsung.com>

Reviewed-by: Juan Quintela <quintela@redhat.com>



> +static int qemu_ufd_copy_ioctl(int userfault_fd, void *host_addr,
> +        void *from_addr, uint64_t pagesize)

from_addr is a void*

> -        if (ioctl(mis->userfault_fd, UFFDIO_ZEROPAGE, &zero_struct)) {
> +        if (qemu_ufd_copy_ioctl(mis->userfault_fd, host, 0, getpagesize())) {

And you pass 0 here, better NULL no?

If you have to respin, please change it.  You can maintain the reviewed-by.

>              int e = errno;
>              error_report("%s: %s zero host: %p",
>                           __func__, strerror(e), host);

  reply	other threads:[~2017-06-21 12:11 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CGME20170616190851eucas1p123df3a9fe01d3c2a81bfe45906d07f0d@eucas1p1.samsung.com>
2017-06-16 19:08 ` [Qemu-devel] [PATCH v3 0/3] Add bitmap for received pages in postcopy migration Alexey Perevalov
2017-06-16 19:08   ` [Qemu-devel] [PATCH v3 1/3] migration: postcopy_place_page factoring out Alexey Perevalov
2017-06-16 19:08   ` [Qemu-devel] [PATCH v3 2/3] migration: introduce qemu_ufd_copy_ioctl helper Alexey Perevalov
2017-06-21 12:11     ` Juan Quintela [this message]
2017-06-16 19:08   ` [Qemu-devel] [PATCH v3 3/3] migration: add bitmap for received page Alexey Perevalov
2017-06-21 19:22     ` Juan Quintela
2017-06-23 15:35       ` Perevalov Alexey
2017-06-23 10:29     ` Dr. David Alan Gilbert
2017-06-23 15:19       ` Perevalov Alexey
2017-06-23 19:41         ` Dr. David Alan Gilbert
2017-06-24  5:11           ` Perevalov Alexey

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=87podxk0at.fsf@secure.laptop \
    --to=quintela@redhat.com \
    --cc=a.perevalov@samsung.com \
    --cc=dgilbert@redhat.com \
    --cc=i.maximets@samsung.com \
    --cc=peterx@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 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.