Skip to content

Fix hypervisor sub-leaf handling

Ludovico de Nittis requested to merge wip/sonicadvance1/cpuid_sub_leaf into master
  • cpu-feature: Add support for CPUID subleaf functions

    Unlike __get_cpuid there isn't a __get_cpuid_count in the version of GCC used to compile. Rely on __cpuid_count exclusively.

  • virtualization: Correctly get hypervisor sub-leaf

    Without setting the sub-leaf explicitly, garbage data would end up in ECX. This was causing pressure-vessel to not be able to fetch the host machine type correctly.

    I missed this in my first pass through the code.


Fixes #93 (closed)

@Sonicadvance1 I created the MR for you.

Merge request reports

Loading