vm-object can be used to demand-allocate non-contiguous physical memory, and will provide an api for userspace programs to do the same. unless a vm-object is created in-place (i.e. to represent a specific area of physical memory), its memory pages are only allocated when the object is mapped AND someone attempts to access the memory.
4.2 KiB
4.2 KiB