Skip to content

Commit aae0062

Browse files
committed
minor pr feedback
1 parent 1dcc7dd commit aae0062

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

vm/devices/user_driver/src/memory.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,9 @@ impl MemoryBlock {
157157
}
158158

159159
/// Returns true if the PFNs are contiguous.
160+
///
161+
/// TODO: Fallback allocations are here for now, but we should eventually
162+
/// allow the caller to require these. See `DmaClient::allocate_dma_buffer`.
160163
pub fn contiguous_pfns(&self) -> bool {
161164
for (curr, next) in self.pfns().iter().zip(self.pfns().iter().skip(1)) {
162165
if *curr + 1 != *next {

0 commit comments

Comments
 (0)