Refactor DT validation routine

For each category CAT of information that can be extracted from DT,
following routinese are created:

* read_CAT_from(&Fdt) -> libfdt::Result<CAT>: for reading the info
  from DT. At this point, pvmfw-specific validation beyond that is done
by libfdt is NOT performed. Note the result type.

* validate_CAT(&CAT) -> Result<(), RebootReason>: validates the
  extracted information

Also, memory.rs is modified so that parsing the DT is done in one place.

Bug: 249054080
Test: TH
Change-Id: Ib672b23b3fb176b9d06e87ee909be9192ab21664
3 files changed
tree: ba8c6990da83205469f7ace9ba43f0adbd4beb43
  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.