Re: [PATCH v4 5/5] selftests/mm: add UFFDIO_MOVE ioctl test

2023-10-30 Thread Suren Baghdasaryan
On Mon, Oct 30, 2023 at 1:35 PM Peter Xu wrote: > > On Mon, Oct 30, 2023 at 01:22:02PM -0700, Suren Baghdasaryan wrote: > > > > +static int adjust_page_size(void) > > > > +{ > > > > + page_size = default_huge_page_size(); > > > > > > This is hacky too, currently page_size is the real page_size

Re: [PATCH v4 5/5] selftests/mm: add UFFDIO_MOVE ioctl test

2023-10-30 Thread Peter Xu
On Mon, Oct 30, 2023 at 01:22:02PM -0700, Suren Baghdasaryan wrote: > > > +static int adjust_page_size(void) > > > +{ > > > + page_size = default_huge_page_size(); > > > > This is hacky too, currently page_size is the real page_size backing the > > memory. > > > > To make thp test simple, maybe

Re: [PATCH v4 5/5] selftests/mm: add UFFDIO_MOVE ioctl test

2023-10-30 Thread Suren Baghdasaryan
On Mon, Oct 30, 2023 at 1:14 PM Peter Xu wrote: > > On Fri, Oct 27, 2023 at 05:38:15PM -0700, Suren Baghdasaryan wrote: > > Add tests for new UFFDIO_MOVE ioctl which uses uffd to move source > > into destination buffer while checking the contents of both after > > the move. After the operation the

Re: [PATCH v4 5/5] selftests/mm: add UFFDIO_MOVE ioctl test

2023-10-30 Thread Peter Xu
On Fri, Oct 27, 2023 at 05:38:15PM -0700, Suren Baghdasaryan wrote: > Add tests for new UFFDIO_MOVE ioctl which uses uffd to move source > into destination buffer while checking the contents of both after > the move. After the operation the content of the destination buffer > should match the origi