Commit 9a1b731
committed
feat(virtio-pmem): add a Drop implementation
Event though during Firecracker normal run pmem devices
are never removed, so there is no need to unmap memory,
it is important for fuzzer runs, as otherwise it runs out
of virtual memory.
Additionally make `mmap_backing_file` private since it is
only called from within Pmem device.
Signed-off-by: Egor Lazarchuk <[email protected]>1 parent 2bccf9a commit 9a1b731
1 file changed
+12
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
98 | 109 | | |
99 | 110 | | |
100 | 111 | | |
| |||
130 | 141 | | |
131 | 142 | | |
132 | 143 | | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
| 144 | + | |
137 | 145 | | |
138 | 146 | | |
139 | 147 | | |
| |||
0 commit comments