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.