pvmfw: Hack MMIO_GUARD_UNMAP to expect NOT_SUPPORTED

Until aosp/2240205, pKVM returned the wrong error code for the HVC (but
otherwise properly implemented it) so mask NOT_SUPPORTED in pvmfw until
all platforms it runs on have been patched.

Keep supporting SUCCESS to allow pvmfw to run on patched platforms.

Log the workaround, to help with debugging.

Note: this commit is intended to be reverted once the bug is fixed.

Bug: 251426790
Test: atest MicrodroidTestApp
Change-Id: I74c2d43dd855e0d7f89fe286dea02eceea3c92be
1 file changed
tree: a2b84c81f0542d9adcc93a0e808b30e6904f7632
  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.