Based on rust-vmm/vm-memory#312, I think we can replace
|
pub guest_memfds: Vec<(Range<u64>, RawFd)>, |
by using
GuestRegionCollection by doing something like:
struct MockRegion {
range: Range<u64>,
fd: RawFd,
}
...
pub guest_memfds: GuestRegionCollection<MockRegion>;
do you think it would be worth to do it?
Thanks,