[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v3 2/3] migration: introduce qemu_ufd_copy_ioctl
From: |
Juan Quintela |
Subject: |
Re: [Qemu-devel] [PATCH v3 2/3] migration: introduce qemu_ufd_copy_ioctl helper |
Date: |
Wed, 21 Jun 2017 14:11:38 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Alexey Perevalov <address@hidden> 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 <address@hidden>
> Reviewed-by: Peter Xu <address@hidden>
> Signed-off-by: Alexey Perevalov <address@hidden>
Reviewed-by: Juan Quintela <address@hidden>
> +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);
- [Qemu-devel] [PATCH v3 0/3] Add bitmap for received pages in postcopy migration, Alexey Perevalov, 2017/06/16
- Message not available
- Message not available
- [Qemu-devel] [PATCH v3 3/3] migration: add bitmap for received page, Alexey Perevalov, 2017/06/16
- Re: [Qemu-devel] [PATCH v3 3/3] migration: add bitmap for received page, Dr. David Alan Gilbert, 2017/06/23
- Re: [Qemu-devel] [PATCH v3 3/3] migration: add bitmap for received page, Perevalov Alexey, 2017/06/23
- Re: [Qemu-devel] [PATCH v3 3/3] migration: add bitmap for received page, Dr. David Alan Gilbert, 2017/06/23
- Re: [Qemu-devel] [PATCH v3 3/3] migration: add bitmap for received page, Perevalov Alexey, 2017/06/24
Message not available