cpuid.rst 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. .. SPDX-License-Identifier: GPL-2.0
  2. ===============
  3. ACRN CPUID bits
  4. ===============
  5. A guest VM running on an ACRN hypervisor can check some of its features using
  6. CPUID.
  7. ACRN cpuid functions are:
  8. function: 0x40000000
  9. returns::
  10. eax = 0x40000010
  11. ebx = 0x4e524341
  12. ecx = 0x4e524341
  13. edx = 0x4e524341
  14. Note that this value in ebx, ecx and edx corresponds to the string
  15. "ACRNACRNACRN". The value in eax corresponds to the maximum cpuid function
  16. present in this leaf, and will be updated if more functions are added in the
  17. future.
  18. function: define ACRN_CPUID_FEATURES (0x40000001)
  19. returns::
  20. ebx, ecx, edx
  21. eax = an OR'ed group of (1 << flag)
  22. where ``flag`` is defined as below:
  23. ================================= =========== ================================
  24. flag value meaning
  25. ================================= =========== ================================
  26. ACRN_FEATURE_PRIVILEGED_VM 0 guest VM is a privileged VM
  27. ================================= =========== ================================
  28. function: 0x40000010
  29. returns::
  30. ebx, ecx, edx
  31. eax = (Virtual) TSC frequency in kHz.