mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-10-05 21:15:45 +00:00
90309b5106
"DescriptorChain"s are tied to the lifetime of the referenced GuestMemoryMmap object (for good reasons), but sometimes (i.e., when processing descriptors from different contexts) we may need to switch them to point a different GuestMemoryMmap. Here we introduce the structure DescriptorHead, which holds the data needed to rebuild a DescriptorChain, the method "get_head" which returns the DescriptorHead for a DescriptorChain, and the method "new_from_head", which allows to create a new DescriptorChain with a DescriptorHead and a new reference to a GuestMemoryMmap. Signed-off-by: Sergio Lopez <slp@redhat.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |