• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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.virtualmachineservice;
17 
18 import android.system.virtualizationcommon.ErrorCode;
19 
20 /** {@hide} */
21 interface IVirtualMachineService {
22     /**
23      * Port number that VirtualMachineService listens on connections from the guest VMs for the
24      * tombtones
25      */
26     const int VM_TOMBSTONES_SERVICE_PORT = 2000;
27 
28     /**
29      * Notifies that the payload has started.
30      */
notifyPayloadStarted()31     void notifyPayloadStarted();
32 
33     /**
34      * Notifies that the payload is ready to serve.
35      */
notifyPayloadReady()36     void notifyPayloadReady();
37 
38     /**
39      * Notifies that the payload has finished.
40      */
notifyPayloadFinished(int exitCode)41     void notifyPayloadFinished(int exitCode);
42 
43     /**
44      * Notifies that an error has occurred inside the VM.
45      */
notifyError(ErrorCode errorCode, in String message)46     void notifyError(ErrorCode errorCode, in String message);
47 }
48