mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-09-12 18:15:06 +00:00
"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> |
||
---|---|---|
.. | ||
transport | ||
vhost_user | ||
vsock | ||
block.rs | ||
console.rs | ||
device.rs | ||
iommu.rs | ||
lib.rs | ||
net_util.rs | ||
net.rs | ||
pmem.rs | ||
queue.rs | ||
rng.rs |