Commit Graph

10 Commits

Author SHA1 Message Date
Andrew Walbran 1ef19ae89a Use camelCase for parcelable fields.
Test: m vm virtmanager
Change-Id: I38344dbbbc681b35e5fa2364b13120290fe98178
2021-04-13 11:23:27 +00:00
Andrew Walbran f6a1eb9566 Include requester UID and SID in VM debug info.
Bug: 184131756
Test: Ran a vm manually with `vm` tool.
Change-Id: Ia0267231592dc964be0a3459bd9d6aa9dff001ca
2021-04-01 13:08:22 +00:00
Andrew Walbran 06b5f5c271 Pass VM config by FD rather than filename.
Bug: 184131756
Test: atest VirtualizationTestCases
Change-Id: Iba739bc8de941b68a88090438743d9f54ba0380c
2021-03-31 13:01:02 +00:00
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
Andrew Walbran a89fc13131 Allow client to pass a file descriptor for VM logs.
Bug: 180893082
Test: Ran vm tool on VIM3L
Test: atest VirtualizationTestCases
Change-Id: I6c7729eb01d953559e1ddb0b5eb84655a84159a8
2021-03-18 12:00:44 +00:00
Andrew Walbran 320b5605dd Add method to get list of VMs for vm tool.
Bug: 181869875
Test: Ran on VIM3L
Change-Id: I90506962171d6c16469e265521b435bec905e0f4
2021-03-11 15:55:27 +00:00
Treehugger Robot eac8c33086 Merge "[LSC] Add LOCAL_LICENSE_KINDS to packages/modules/Virtualization" 2021-02-24 18:50:50 +00:00
Bob Badour bd1037fb6c [LSC] Add LOCAL_LICENSE_KINDS to packages/modules/Virtualization
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
2021-02-19 12:58:58 -08:00
Jiyong Park 8d1eb7ef09 Add virtmanager to the virt APEX
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
2021-02-18 21:56:34 +09:00
Andrew Walbran b12a43e9fe Started on Virt Manager.
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
2021-02-09 11:25:12 +00:00