KernelTestFramework / ktf

Kernel Test Framework
BSD 2-Clause "Simplified" License
140 stars 18 forks source link

Implement memory range mapping/unmapping; Cleanup and standardize vmap API #308

Closed wipawel closed 11 months ago

wipawel commented 1 year ago

This resolves #253.

wipawel commented 11 months ago

Great work, Pawel. Only a few nits and questions left, but really no more code changes required.

The comment regarding only being able to unmap single pages via SYSCALL_MUNMAP still applies. But I guess, now with v[un]map_range() available, it's easy to extend the functionality to cover multiple pages. But this can (and should!) be a follow-up change.

Thanks again for the hard work!

Thanks very much Mathias!

I created a dedicated issue for the mmap/munmap usermode extension: #332. This should also depend on another issue: #331, but in general should be much easier to implement now.