mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Remove the need for unsafely materializing slices from guest memory pointers which is, by definition, undefined behavior. Achieved by introducing a TxBufSource trait that is implemented for both types of sources (Guest Memory or local copy) and by using the volatile read/write primities for moving data from a readable or writable to guest memory. Assisted-by: Codex:GPT-5 Signed-off-by: Dylan Reid <dgreid@fb.com>