Go to file
Alan Stokes 65bbb91d48 Panic on non-actionable failures
This is based on Michael's comments on aosp/2280849. For methods which
should never fail unless the VM is already dying, and for which
clients cannot take any meaningful action, panic instead of returning
false. Make sure we log the cause first.

Update client code to match. Update doc comments in the header file.

Also clarify that calling notify read more than once is harmless
(otherwise it would panic).

Incidentally, rename vs_payload_service.rs because it was confusing me
(we have a file of the same name in microdroid manager which actually
implements the service.)

Changes to AVmPayload_runVsockRpcServer will come later.

Bug: 243512108
Test: atest MicrodroidTests
Test: composd_cmd --test-compile
Change-Id: Ie6f6203ba54246cac669f4a68e8ab76f0a5792ae
2022-11-23 15:36:11 +00:00
apex Put libvirtualmachine_jni in all variants of virt APEX 2022-11-18 17:01:36 +00:00
apkdmverity Fix warnings from rustc 1.65.0 2022-11-16 15:54:35 -08:00
authfs rpc_binder: Refactor users of RpcServer to use new API 2022-11-22 10:15:10 +00:00
avmd [hex] Use libhex to encode hex string in avmd and apexutil 2022-10-12 16:43:30 +00:00
compos Panic on non-actionable failures 2022-11-23 15:36:11 +00:00
demo Remove onPayloadStdio 2022-11-21 14:46:24 +00:00
docs Support payload path for vm run-app 2022-11-15 14:28:06 +09:00
encryptedstore Mount a filesystem on the crypt block device 2022-11-22 17:53:45 +00:00
javalib Remove unsafe_ignore_missing_latest_api 2022-11-22 11:16:45 +00:00
launcher Remove support for command-line args 2022-10-17 15:06:26 +01:00
libs Fix warnings from rustc 1.65.0 2022-11-16 15:54:35 -08:00
microdroid Move vm_payload to the top level 2022-11-23 09:44:17 +00:00
microdroid_manager Merge "rpc_binder: Refactor users of RpcServer to use new API" 2022-11-22 21:39:10 +00:00
pvmfw pvmfw: Expect an appended BCC 2022-11-14 19:17:21 +00:00
rialto Delete cpu affinity config 2022-09-09 13:46:08 -07:00
tests Panic on non-actionable failures 2022-11-23 15:36:11 +00:00
virtualizationservice Mount a filesystem on the crypt block device 2022-11-22 17:53:45 +00:00
vm Mount a filesystem on the crypt block device 2022-11-22 17:53:45 +00:00
vm_payload Panic on non-actionable failures 2022-11-23 15:36:11 +00:00
vmbase vmbase: integration_test: Use Android logger 2022-11-17 17:22:03 +00:00
vmclient Remove onPayloadStdio 2022-11-21 14:46:24 +00:00
zipfuse Fix zipfuse race condition 2022-10-07 16:43:15 +01:00
.clang-format
.gitignore [Cleanup] Add cargo targets to .gitignore 2022-08-01 15:21:48 +00:00
Android.bp
OWNERS Add bug component 2022-11-21 09:46:46 +00:00
PREUPLOAD.cfg [linter] Add google-java-format as java pre-commit linter 2022-11-14 15:59:16 +00:00
README.md
TEST_MAPPING Merge "Include TEST_MAPPING in ./libs/devicemapper" 2022-11-01 02:56:21 +00:00
rustfmt.toml

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.