Skip to content

GuestRegionMmap: extend for supporting guest_memfd #315

Open
@MatiasVara

Description

@MatiasVara

Probably I am missing a lot of things here, but I was wondering if it would be worth to extend GuestRegionMmap (see

pub struct GuestRegionMmap<B = ()> {
) to contain the fd resulting from kvm_create_guest_memfd(). The problem I have is that I keep a separated Vec<> to store the fd for each region created by using kvm_userspace_memory_region2(). I would like to have everything in the same structure. The mapping between fd and region is required when switching regions from private to shared and vice-versa.

Any thoughts?

Thanks, Matias.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions