CrOS: userspace_swap: Introduce fault requeue on userfaultfd.
When handling userfaultfd faults UFFDIO_COPYRANGE and UFFDIO_ZEROPAGE can both return -EAGAIN when memory mappings are changing. It will continue to do so until the event which was causing the change is read from the userfaultfd. This introduces a simple mechaism for fault handlers to return false when they couldn't handle a fault due to a -EAGAIN. Those faults will be queued and redelivered later. Bug: chromium:1067833 Change-Id: I6ef5ce6ded969be95d320c02bad5e33b91de6a1e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2450702Reviewed-by:Matthew Denton <mpdenton@chromium.org> Commit-Queue: Brian Geffon <bgeffon@chromium.org> Cr-Commit-Position: refs/heads/master@{#814418}
Showing
Please register or sign in to comment