[CRIU] [RFC PATCH 16/16] criu: lazy-pages: actually use nr_pages for get_remote_pages
Mike Rapoport
rppt at linux.vnet.ibm.com
Wed Oct 5 07:40:32 PDT 2016
On Wed, Oct 05, 2016 at 04:14:26PM +0300, Pavel Emelyanov wrote:
> On 09/27/2016 04:42 PM, Mike Rapoport wrote:
> > Signed-off-by: Mike Rapoport <rppt at linux.vnet.ibm.com>
> > ---
> > criu/uffd.c | 2 +-
> > 1 file changed, 1 insertion(+), 1 deletion(-)
> >
> > diff --git a/criu/uffd.c b/criu/uffd.c
> > index 0c42097..e593f9d 100644
> > --- a/criu/uffd.c
> > +++ b/criu/uffd.c
> > @@ -505,7 +505,7 @@ static int uffd_copy(struct lazy_pages_info *lpi, __u64 address, int nr_pages)
> > int rc;
> >
> > if (opts.use_page_server)
> > - rc = get_remote_pages(lpi->pid, address, 1, lpi->buf);
> > + rc = get_remote_pages(lpi->pid, address, nr_pages, lpi->buf);
>
> Nice :) Can we now move the get_remote_pages() into a page_read backend?
Yes, we can :)
> > else
> > rc = get_pages(lpi, address, nr_pages);
> > if (rc <= 0)
> >
>
More information about the CRIU
mailing list