Skip to content

Should we use GuestRegionCollection? #389

@MatiasVara

Description

@MatiasVara

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,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions