brintos

brintos / linux-shallow public Read only

0
0
Text · 1.2 KiB · 65fa4b9 Raw
47 lines · plain
1.. SPDX-License-Identifier: GPL-2.02 3===============4ACRN CPUID bits5===============6 7A guest VM running on an ACRN hypervisor can check some of its features using8CPUID.9 10ACRN cpuid functions are:11 12function: 0x4000000013 14returns::15 16   eax = 0x4000001017   ebx = 0x4e52434118   ecx = 0x4e52434119   edx = 0x4e52434120 21Note that this value in ebx, ecx and edx corresponds to the string22"ACRNACRNACRN". The value in eax corresponds to the maximum cpuid function23present in this leaf, and will be updated if more functions are added in the24future.25 26function: define ACRN_CPUID_FEATURES (0x40000001)27 28returns::29 30          ebx, ecx, edx31          eax = an OR'ed group of (1 << flag)32 33where ``flag`` is defined as below:34 35================================= =========== ================================36flag                              value       meaning37================================= =========== ================================38ACRN_FEATURE_PRIVILEGED_VM        0           guest VM is a privileged VM39================================= =========== ================================40 41function: 0x4000001042 43returns::44 45          ebx, ecx, edx46          eax = (Virtual) TSC frequency in kHz.47