On Mon, Oct 19, 2020 at 11:14 PM Matthew Wilcox wrote: > 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()? But I didn't see any difference between zap_vma_ptes() and zap_page_range() about MMU notifier. Could you give me more details? Thanks, Yongji > Or would it make sense > to change zap_vma_ptes() to handle VM_MIXEDMAP as well as VM_PFNMAP? > >