On 9/24/21 4:11 PM, Warner Losh wrote:
It brings to mind something else... There's times it might be easier to refactor between bsd-user and linux-user rather than upstream something that's largely copied from linux-user. Is there a good way to do that and talk about the design before I sink a ton of time into something that's the wrong direction?
I certainly wouldn't mind a top-level user-only/ or posix-only/ in which we could share code between {linux,bsd}-user/, but I don't have a good idea of what that would look like.
Already you have code for MAP_EXCL that doesn't exist for linux (though there is a new, related, MAP_FIXED_NOREPLACE, which linux-user/ does not yet support). So even with "obvious" routines I'm not sure how much real sharing we can get away with.
All I can say is: patches welcome, and we'll bike-shed them as they come. r~