On Mon, Oct 19, 2020 at 10:56:20PM +0800, Xie Yongji wrote: > Export zap_page_range() for use in VDUSE. I think you're missing a lot of MMU notifier work by calling this directly. It probably works in every scenario you've tested, but won't work for others. I see you're using VM_MIXEDMAP -- would it make sense to use VM_PFNMAP instead and use zap_vma_ptes()? Or would it make sense to change zap_vma_ptes() to handle VM_MIXEDMAP as well as VM_PFNMAP?