Commit 9c7970c2 authored by Mike Rapoport's avatar Mike Rapoport Committed by Andrei Vagin

uffd: do not treat VDSO pages as lazy

VDSO is just a few pages and they can be loaded directly rather than go
through userfaultfd to save some complexity on the lazy-pages daemon side.
Signed-off-by: 's avatarMike Rapoport <rapoport@il.ibm.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 33696ceb
...@@ -129,6 +129,7 @@ static inline bool vma_entry_can_be_lazy(VmaEntry *e) ...@@ -129,6 +129,7 @@ static inline bool vma_entry_can_be_lazy(VmaEntry *e)
{ {
return ((e->flags & MAP_ANONYMOUS) && return ((e->flags & MAP_ANONYMOUS) &&
(e->flags & MAP_PRIVATE) && (e->flags & MAP_PRIVATE) &&
!(vma_entry_is(e, VMA_AREA_VDSO)) &&
!(vma_entry_is(e, VMA_AREA_VSYSCALL))); !(vma_entry_is(e, VMA_AREA_VSYSCALL)));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment