1 /* 2 * Copyright 2021 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package android.system.virtualizationservice; 17 18 /** 19 * The lifecycle state of a VM. 20 */ 21 @Backing(type="int") 22 enum VirtualMachineState { 23 /** 24 * The VM has been created but not yet started. 25 */ 26 NOT_STARTED = 0, 27 /** 28 * The VM is running, but the payload has not yet started. 29 */ 30 STARTING = 1, 31 /** 32 * The VM is running and the payload has been started, but it has not yet indicated that it is 33 * ready. 34 */ 35 STARTED = 2, 36 /** 37 * The VM payload has indicated that it is ready to serve requests. 38 */ 39 READY = 3, 40 /** 41 * The VM payload has finished but the VM itself is still running. 42 */ 43 FINISHED = 4, 44 /** 45 * The VM has died. 46 */ 47 DEAD = 6, 48 } 49