commit | 5c94426d39e9c89435fe35c3d60529670ca988e6 | [log] [tgz] |
---|---|---|
author | Pierre-Clément Tosi <ptosi@google.com> | Thu Apr 27 17:59:10 2023 +0000 |
committer | Pierre-Clément Tosi <ptosi@google.com> | Thu May 11 14:05:44 2023 +0000 |
tree | 8faaebf0e530db7f21dff6f4ecee5f4c8d306d06 | |
parent | 9f37a45485f541c939ba4498a403dada24317f9e [diff] |
pvmfw: virtio: Clean up hal.rs Replace contains_range() with the RangeExt::is_within helper. Turn the logging calls tracking VirtIO buffer management into trace!(). Move logging for allocation of shared memory to the allocators. Avoid using as when casting pointers and use methods instead; in particular, explicitly const_cast the source of a copy_nonoverlapping. Make the logs for copying to/from bounce buffers easier to grep/parse. Minimize scope of unsafe blocks, add missing SAFETY comments, and clarify that HalImpl methods safety requirements are documented in the trait. Add copyright header and module docstring. Bug: 280644106 Test: atest MicrodroidTests Change-Id: I1b4daade70f5f43b6bc0f222568fbaaa29edf27f Merged-In: I1b4daade70f5f43b6bc0f222568fbaaa29edf27f
This repository contains userspace services related to running virtual machines on Android, especially protected virtual machines. See the getting started documentation and Microdroid README for more information.