We can try. But I'm not sure there's any reason to think there's anyI meant if we can find a way to avoid doing gup in datapath. E.g vhostUsing direct mapping (IWe can't really. The big issue is get user pages. Doing that on data
guess kernel will always try hugepage for that?) should be better and we can
even use it for the data transfer not only for the metadata.
Thanks
path will be slower than copyXuser.
maintain a range tree and add or remove ranges through MMU notifier. Then in
datapath, if we find the range, then use direct mapping otherwise
copy_to_user().
Thanks
locality there.