More API improvements

This attempts to address more of the comments on aosp/2192077.
- Add a message to some of our exceptions.
- Move error checking from build() to the VirtualMachineConfig
  constructor, so we catch any errors when deserializing config too.
- Make negative memory an error. Add @IntRange to memory & number of
  CPUs.
- Check debugLevel is valid.
- Improve various javadoc comments.
- Rename toParcel() to toVsConfig() because it was confusing me.
- Remove the no-args construction for our exception because we don't
  use it and probably never should.

Bug: 243512115
Test: atest MicrodroidTests MicrodroidHostTests
Change-Id: I64c6b9e9f9620e9b93702cd93aedc72d754ba406
4 files changed
tree: ad63a637bbd619d57e3cb027c0319319afa53c9a
  1. apex/
  2. apkdmverity/
  3. authfs/
  4. avmd/
  5. compos/
  6. demo/
  7. docs/
  8. javalib/
  9. launcher/
  10. libs/
  11. microdroid/
  12. microdroid_manager/
  13. pvmfw/
  14. rialto/
  15. tests/
  16. virtualizationservice/
  17. vm/
  18. vmbase/
  19. vmclient/
  20. zipfuse/
  21. .clang-format
  22. .gitignore
  23. Android.bp
  24. OWNERS
  25. PREUPLOAD.cfg
  26. README.md
  27. 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.