]> xenbits.xensource.com Git - unikraft/unikraft.git/commit
lib/ukvmem: Allow non-writable shared file mappings
authorCosmin Vancea <csvancea@gmail.com>
Mon, 10 Apr 2023 15:43:11 +0000 (18:43 +0300)
committerUnikraft <monkey@unikraft.io>
Fri, 21 Apr 2023 22:05:46 +0000 (22:05 +0000)
commit53be06c9842d24fd871058aa24483e936e80f65c
treec8bd434c855298583972f3bc99ac07b04f965715
parent8d36f525371cd6725c5f36939fd350ac9a23e123
lib/ukvmem: Allow non-writable shared file mappings

Non-writable shared file mappings are treated as anonymous read-only file
mappings. Note that any writes made to the underlying file will not be
reflected in memory.

Signed-off-by: Cosmin Vancea <csvancea@gmail.com>
Reviewed-by: Andra Paraschiv <andra@unikraft.io>
Approved-by: Marc Rittinghaus <marc.rittinghaus@unikraft.io>
Tested-by: Unikraft CI <monkey@unikraft.io>
GitHub-Closes: #832
lib/ukvmem/include/uk/vmem.h
lib/ukvmem/vma_dma.c
lib/ukvmem/vma_file.c
lib/ukvmem/vmem.c