• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2022 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 reason why a VM died.
20  */
21 @Backing(type="int")
22 enum DeathReason {
23     /** There was an error waiting for the VM. */
24     INFRASTRUCTURE_ERROR = 0,
25     /** The VM was killed. */
26     KILLED = 1,
27     /** The VM died for an unknown reason. */
28     UNKNOWN = 2,
29     /** The VM requested to shut down. */
30     SHUTDOWN = 3,
31     /** crosvm had an error starting the VM. */
32     ERROR = 4,
33     /** The VM requested to reboot, possibly as the result of a kernel panic. */
34     REBOOT = 5,
35     /** The VM or crosvm crashed. */
36     CRASH = 6,
37     /** The pVM firmware failed to verify the VM because the public key doesn't match. */
38     PVM_FIRMWARE_PUBLIC_KEY_MISMATCH = 7,
39     /** The pVM firmware failed to verify the VM because the instance image changed. */
40     PVM_FIRMWARE_INSTANCE_IMAGE_CHANGED = 8,
41     /** The bootloader failed to verify the VM because the public key doesn't match. */
42     BOOTLOADER_PUBLIC_KEY_MISMATCH = 9,
43     /** The bootloader failed to verify the VM because the instance image changed. */
44     BOOTLOADER_INSTANCE_IMAGE_CHANGED = 10,
45 }
46