Re: [PATCH v2 26/26] userfaultfd: selftests: add write-protect test

2019-02-25 Thread Peter Xu
On Tue, Feb 26, 2019 at 08:58:36AM +0200, Mike Rapoport wrote: > On Tue, Feb 12, 2019 at 10:56:32AM +0800, Peter Xu wrote: > > This patch adds uffd tests for write protection. > > > > Instead of introducing new tests for it, let's simply squashing uffd-wp > > tests into existing uffd-missing test

Re: [PATCH v2 26/26] userfaultfd: selftests: add write-protect test

2019-02-25 Thread Mike Rapoport
On Tue, Feb 12, 2019 at 10:56:32AM +0800, Peter Xu wrote: > This patch adds uffd tests for write protection. > > Instead of introducing new tests for it, let's simply squashing uffd-wp > tests into existing uffd-missing test cases. Changes are: > > (1) Bouncing tests > > We do the write-prote

[PATCH v2 26/26] userfaultfd: selftests: add write-protect test

2019-02-11 Thread Peter Xu
This patch adds uffd tests for write protection. Instead of introducing new tests for it, let's simply squashing uffd-wp tests into existing uffd-missing test cases. Changes are: (1) Bouncing tests We do the write-protection in two ways during the bouncing test: - By using UFFDIO_COPY_MODE