commit | 0e82b50e236acdab78fa566e92442b020262b97f | [log] [tgz] |
---|---|---|
author | Alan Stokes <alanstokes@google.com> | Mon Aug 08 14:44:48 2022 +0100 |
committer | Alan Stokes <alanstokes@google.com> | Tue Aug 09 17:43:29 2022 +0100 |
tree | 86d28a5dc3552139bbb28926ca87718d85223f0c | |
parent | 9c28cb083109e3d582be4f5159002a8803f21edd [diff] |
Move VM callback to vmclient Instead of having clients directly register a callback with VS, implement a Rust level callback interface in vmclient. This saves an extra binder call on each notification, a bunch of boilerplate code, and allows us to provide a slightly better interface (e.g. we can use the Rust DeathReason enum, as elsewhere in vmclient, for instantly better logging). I also replaced all our usages of <some_interface>::binder::{...} with direct access to binder::{...}. That makes it clearer what depends on the interface itself and what is just generic binder code. I realise this should be a separate change, but I only realised that after doing bits of both. Test: composd_cmd test-compile, observe logs (on both success & failure) Test: atest -b (to make sure all our tests build) Test: Presubmits Change-Id: Iceda8d7b8f8008f9d7a2c51106c2794f09bb378e
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.