Fix hypervisor sub-leaf handling
-
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.