pvmfw: Accept either swiotlb DT reg or size/align

In accordance with the Linux documentation for "restricted-dma-pool",
either expect a static region through the <reg> property OR a dynamic
one with the <size> property, not both. When <reg> is used, assume that
<alignment> isn't needed either as no allocation is required (docs are
currently unclear on this).

Remove properties that aren't deemed necessary from the template DT,
when modifying it to generate the guest DT. To do so, NOP the properties
instead of deleting them, this has the same effect of removing them from
the DT but is O(1) instead of O(n) in the length of the DT; as we
fdt.pack() it once done, the final result remains as compact as possible
anyway.

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