Re: [PATCH 1/2] userfaultfd: handle zeropage moves by UFFDIO_MOVE

2024-01-25 Thread Suren Baghdasaryan
On Wed, Jan 24, 2024 at 4:13 PM Suren Baghdasaryan wrote: > > Current implementation of UFFDIO_MOVE fails to move zeropages and returns > EBUSY when it encounters one. We can handle them by mapping a zeropage > at the destination and clearing the mapping at the source. This is done > both for

[PATCH 1/2] userfaultfd: handle zeropage moves by UFFDIO_MOVE

2024-01-24 Thread Suren Baghdasaryan
Current implementation of UFFDIO_MOVE fails to move zeropages and returns EBUSY when it encounters one. We can handle them by mapping a zeropage at the destination and clearing the mapping at the source. This is done both for ordinary and for huge zeropages. Signed-off-by: Suren Baghdasaryan ---