xref: /aosp_15_r20/system/libsysprop/srcs/android/sysprop/HypervisorProperties.sysprop (revision 84dc9db433a600c0ca231d638135de5b8181a4b9)
1*84dc9db4SAndroid Build Coastguard Worker# Copyright (C) 2021 The Android Open Source Project
2*84dc9db4SAndroid Build Coastguard Worker#
3*84dc9db4SAndroid Build Coastguard Worker# Licensed under the Apache License, Version 2.0 (the "License");
4*84dc9db4SAndroid Build Coastguard Worker# you may not use this file except in compliance with the License.
5*84dc9db4SAndroid Build Coastguard Worker# You may obtain a copy of the License at
6*84dc9db4SAndroid Build Coastguard Worker#
7*84dc9db4SAndroid Build Coastguard Worker#      http://www.apache.org/licenses/LICENSE-2.0
8*84dc9db4SAndroid Build Coastguard Worker#
9*84dc9db4SAndroid Build Coastguard Worker# Unless required by applicable law or agreed to in writing, software
10*84dc9db4SAndroid Build Coastguard Worker# distributed under the License is distributed on an "AS IS" BASIS,
11*84dc9db4SAndroid Build Coastguard Worker# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*84dc9db4SAndroid Build Coastguard Worker# See the License for the specific language governing permissions and
13*84dc9db4SAndroid Build Coastguard Worker# limitations under the License.
14*84dc9db4SAndroid Build Coastguard Worker
15*84dc9db4SAndroid Build Coastguard Workerowner: Platform
16*84dc9db4SAndroid Build Coastguard Workermodule: "android.sysprop.HypervisorProperties"
17*84dc9db4SAndroid Build Coastguard Worker
18*84dc9db4SAndroid Build Coastguard Worker# Provides a free-form description of the version of the hypervisor in use
19*84dc9db4SAndroid Build Coastguard Worker# that Android is running as a guest of, if any. Empty string on native
20*84dc9db4SAndroid Build Coastguard Worker# Android deployments, or if the information was not or could not be supplied.
21*84dc9db4SAndroid Build Coastguard Workerprop {
22*84dc9db4SAndroid Build Coastguard Worker    api_name: "hypervisor_version"
23*84dc9db4SAndroid Build Coastguard Worker    type: String
24*84dc9db4SAndroid Build Coastguard Worker    scope: Public
25*84dc9db4SAndroid Build Coastguard Worker    access: Readonly
26*84dc9db4SAndroid Build Coastguard Worker    prop_name: "ro.boot.hypervisor.version"
27*84dc9db4SAndroid Build Coastguard Worker}
28*84dc9db4SAndroid Build Coastguard Worker
29*84dc9db4SAndroid Build Coastguard Worker# Declares whether or not the hypervisor supports running traditional virtual
30*84dc9db4SAndroid Build Coastguard Worker# machines that can be created and managed via VirtualizationService.
31*84dc9db4SAndroid Build Coastguard Workerprop {
32*84dc9db4SAndroid Build Coastguard Worker    api_name: "hypervisor_vm_supported"
33*84dc9db4SAndroid Build Coastguard Worker    type: Boolean
34*84dc9db4SAndroid Build Coastguard Worker    scope: Public
35*84dc9db4SAndroid Build Coastguard Worker    access: Readonly
36*84dc9db4SAndroid Build Coastguard Worker    prop_name: "ro.boot.hypervisor.vm.supported"
37*84dc9db4SAndroid Build Coastguard Worker}
38*84dc9db4SAndroid Build Coastguard Worker
39*84dc9db4SAndroid Build Coastguard Worker# Declares whether or not the hypervisor supports running protected virtual
40*84dc9db4SAndroid Build Coastguard Worker# machines, where the host cannot inspect the virtual machine's internal state,
41*84dc9db4SAndroid Build Coastguard Worker# that can be created and managed via VirtualizationService. pKVM is an example
42*84dc9db4SAndroid Build Coastguard Worker# of a hypervisor that supports protected virtual machines.
43*84dc9db4SAndroid Build Coastguard Workerprop {
44*84dc9db4SAndroid Build Coastguard Worker    api_name: "hypervisor_protected_vm_supported"
45*84dc9db4SAndroid Build Coastguard Worker    type: Boolean
46*84dc9db4SAndroid Build Coastguard Worker    scope: Public
47*84dc9db4SAndroid Build Coastguard Worker    access: Readonly
48*84dc9db4SAndroid Build Coastguard Worker    prop_name: "ro.boot.hypervisor.protected_vm.supported"
49*84dc9db4SAndroid Build Coastguard Worker}
50