commit | d4f51a53af6cbb44dbfdd721a473be4c3d19f8b1 | [log] [tgz] |
---|---|---|
author | David Brazdil <dbrazdil@google.com> | Wed Jan 11 14:09:27 2023 +0000 |
committer | David Brazdil <dbrazdil@google.com> | Thu Jan 12 14:03:16 2023 +0000 |
tree | ce9001071bf5c84e6308c7bfb4babb9c8abaf821 | |
parent | 31c22e6dea936672b540ad86833efc953bd20c02 [diff] |
virtmgr: Delegate debugVmList to virtualizationservice The shell user has permission to list all VMs in the system (called from 'vm list'). This stopped working after virtmgr was introduced, as it only has visibility of its own VMs. Add a new method on VirtuliazationService_Internal to retrieve this information from the global VS, which does keep a list of the allocated VM contexts. Extend VS's info with the requestor's UID and PID to match the original functionality. The one piece of information missing is the VM's running state. Bug: 245727626 Bug: 264826962 Test: adb shell /apex/com.android.virt/vm list Test: vm/vm_shell.sh start-microdroid --auto-connect Test: atest MicrodroidHostTestCases Change-Id: I4cf5d1a9792aca995b63a13c2ee47c6033d9a5d6
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.