So as to support running VMs from `adb shell` without a persistent
session (closing the shell), add two new methods to Virt Manager AIDL:
debugVmHoldRef and debugVmDropRef. The former will accept a strong VM
reference from the user and store it inside Virt Manager. The latter
can be used to retrieve the reference by CID and will make Virt Manager
drop it. Both are limited to the shell user.
On the `vm` tool side, a new '-d/--daemonize' flag is added to the
'vm run' command which calls debugVmHoldRef after a VM is created and
exits. 'vm stop <cid>' command is added to allow killing a previously
daemonized VM.
Bug: 182254712
Test: vm run -d <json>; vm list; vm drop <cid>
Change-Id: Ic7198b3fc7a19688fca762ec04dd2430a7626222
Added SPDX-license-identifier-Apache-2.0 to:
virtmanager/Android.bp
virtmanager/aidl/Android.bp
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Exempt-From-Owner-Approval: janitorial work
Change-Id: Ied2fb42523a50a8d70e30729ddc78118051bb80c
We want to have virtmanager (and its dependencies) inside the APEX so
that they can be updated.
Bug: 180297657
Test: com.android.virt
Change-Id: I79935c99f8884a3260fc19f797466b47b3dc6583
This is a new service to manage crosvm instances running VMs. It
provides an AIDL interface which other services can call to start a VM
with some given configuration.
Bug: 171278952
Test: mm
Change-Id: Ie5b10d5f48da430aaeb66af9f2ee082f143472ec