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
2 files changed
tree: 8faaebf0e530db7f21dff6f4ecee5f4c8d306d06
  1. apex/
  2. apkdmverity/
  3. authfs/
  4. compos/
  5. demo/
  6. docs/
  7. encryptedstore/
  8. javalib/
  9. launcher/
  10. libs/
  11. microdroid/
  12. microdroid_manager/
  13. pvmfw/
  14. rialto/
  15. tests/
  16. virtualizationmanager/
  17. virtualizationservice/
  18. vm/
  19. vm_payload/
  20. vmbase/
  21. vmclient/
  22. zipfuse/
  23. .clang-format
  24. .gitignore
  25. Android.bp
  26. OWNERS
  27. PREUPLOAD.cfg
  28. README.md
  29. TEST_MAPPING
README.md

Virtualization

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.