# ACRN CPUID bits

_Peios Kernel / Internals / Virtualisation / acrn_

> A guest VM running on an ACRN hypervisor can check some of its features using CPUID.

<a id="rst-acrn-cpuid-bits"></a>

<!-- SPDX-License-Identifier: GPL-2.0 -->

A guest VM running on an ACRN hypervisor can check some of its features using CPUID.

ACRN cpuid functions are:

function: 0x40000000

returns:



```text
eax = 0x40000010
ebx = 0x4e524341
ecx = 0x4e524341
edx = 0x4e524341
```

Note that this value in ebx, ecx and edx corresponds to the string "ACRNACRNACRN". The value in eax corresponds to the maximum cpuid function present in this leaf, and will be updated if more functions are added in the future.

function: define ACRN_CPUID_FEATURES (0x40000001)

returns:



```text
ebx, ecx, edx
eax = an OR'ed group of (1 << flag)
```

where `flag` is defined as below:


<table>
<thead>
<tr>
<th>


flag

</th>
<th>


value

</th>
<th>


meaning

</th>
</tr>
</thead>
<tbody>
<tr>
<td>


ACRN_FEATURE_PRIVILEGED_VM

</td>
<td>


0

</td>
<td>


guest VM is a privileged VM

</td>
</tr>
</tbody>
</table>

function: 0x40000010

returns:



```text
ebx, ecx, edx
eax = (Virtual) TSC frequency in kHz.
```
