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,
Based on rust-vmm/vm-memory#312, I think we can replace
libkrun/src/vmm/src/linux/vstate.rs
Line 502 in 714e762
GuestRegionCollectionby doing something like:do you think it would be worth to do it?
Thanks,