android_packages_modules_Vi.../virtmanager
David Brazdil 3c2ddef1c1 Add VM ref holding to Virt Manager
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
2021-03-19 16:55:39 +00:00
..
aidl Add VM ref holding to Virt Manager 2021-03-19 16:55:39 +00:00
src Add VM ref holding to Virt Manager 2021-03-19 16:55:39 +00:00
.gitignore Started on Virt Manager. 2021-02-09 11:25:12 +00:00
Android.bp Add VM ref holding to Virt Manager 2021-03-19 16:55:39 +00:00