mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-31 19:35:28 +00:00
This patch adds a parser of CPU identification information reported by the CPUID instruction. The framework is based on the CPUID parsing facilities in BITS (https://biosbits.org/), but with the following changes. 1. The CPUID data is fetched by executing the `cpuid` utility, rather than executing the `cpuid` instruction. This avoids introducing any additional library or Python/C extension and gets a CPUID leaf on all physical cores in one shot. 2. Parsers of CPUID leaves 0x10, 0x1A and 0x1F are added. New fields in existing leaves are also added. 3. A wrapper function, named `parse_cpuid`, is added as the single API that allows other modules to get an arbitrary CPUID leaf or subleaf. Tracked-On: #5922 Signed-off-by: Junjie Mao <junjie.mao@intel.com> |
||
---|---|---|
.. | ||
__init__.py | ||
cpuids.py | ||
platformbase.py |