aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicholas Verne <nverne@chromium.org>2018-09-19 09:24:38 -0700
committerandroid-build-merger <android-build-merger@google.com>2018-09-19 09:24:38 -0700
commit13625c7825fe511bedba1a4fda7cd4dba55d6832 (patch)
tree9dac85e52fc8ccf1d83ce51c84d11fb586c5f97a
parentc7e70c320b6afe5aa66d6e157ebe5c9334290593 (diff)
parente7065cdce90b15c58af1bdb2763199777332d034 (diff)
downloadsystem_api-13625c7825fe511bedba1a4fda7cd4dba55d6832.tar.gz
Add VmStatus to StartVmResponse. am: 137cb973fb am: 45cd86d54d
am: e7065cdce9 Change-Id: Ia87112bc5a9664df7a8e3a5084214010d3bc06ea
-rw-r--r--dbus/vm_concierge/service.proto18
1 files changed, 18 insertions, 0 deletions
diff --git a/dbus/vm_concierge/service.proto b/dbus/vm_concierge/service.proto
index 6d3aac1..c3dc590 100644
--- a/dbus/vm_concierge/service.proto
+++ b/dbus/vm_concierge/service.proto
@@ -103,6 +103,20 @@ message StartVmRequest {
string owner_id = 7;
}
+enum VmStatus {
+ // Unknown status.
+ VM_STATUS_UNKNOWN = 0;
+
+ // The VM is already running.
+ VM_STATUS_RUNNING = 1;
+
+ // The VM is currently starting up.
+ VM_STATUS_STARTING = 2;
+
+ // The VM failed to startup.
+ VM_STATUS_FAILURE = 3;
+}
+
// Information sent back by vm_concierge in response to a StartVm dbus message.
message StartVmResponse {
// If true, the VM was started successfully. |vm_info| will have non-default
@@ -114,6 +128,10 @@ message StartVmResponse {
// Information about the VM that was started, if successful.
VmInfo vm_info = 3;
+
+ // Status of the VM. If VM_STATUS_RUNNING, it is not necessary to wait for a
+ // TremplinStartedSignal before starting a container in the VM.
+ VmStatus status = 4;
}
// Information that must be included with every StopVm dbus message.