twizzler-operating-system / twizzler

The Twizzler Operating System
BSD 3-Clause "New" or "Revised" License
62 stars 13 forks source link

Enhanced object copy primitive (part 1) #153

Closed dbittman closed 8 months ago

dbittman commented 8 months ago

This PR enhances they object copy primitive in the kernel. This primitive is invoked on object creation, and is used to map regions of memory as required by executable loaders. However, the primitive is generalized: a destination object may be given a list of copy-from directives, which acts like a gather operation on object data from source objects copied into the destination. If possible, the kernel prefers to share pages between objects using copy on write.

This PR improves in the following ways:

Still planning to add, before ready for review:

dbittman commented 8 months ago

So what happens in part 2?

Of the PR? We'll need to hook it up to the pager, once that gets implemented.