mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Refactor VhdxSync around shared iovec helpers which are marked unsafe. Use these to implement safe wrappers for the new AsyncIo trait. Leave the existing, unsound read/write vectored calls in place until all callers are converted to the new interface later in this series. In addition VHDX code assume it's safe to create slices to GuestMemory via the AsyncAdaptor in existing code and explicitly after this change. This is technically unsound as it can easily create multiple mut refs. At least this is 'llvm update breaks the code' UB, not guest exploitable UB... Signed-off-by: Dylan Reid <dgreid@fb.com>