mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-05-07 16:07:03 +00:00
This patch extracts information on CPU topology and capability and put them under the `/acrn-config/processors` node in the board XML. The added information can be divided into two categories. 1. The topology of CPUs like the following. Each thread (which is a leaf node in the topology) contains its addresses (i.e. CPU ID, APIC ID, x2APIC ID) and model identifiers (i.e. family, model, stepping IDs, core types and native model ID). <die id="0"> <core id="0x0"> <thread id="0x0"> <cpu_id>0</cpu_id> <apic_id>0x0</apic_id> <x2apic_id>0x0</x2apic_id> <family_id>0x6</family_id> <model_id>0x9e</model_id> <stepping_id>0x9</stepping_id> <core_type></core_type> <native_model_id></native_model_id> </thread> <thread id="0x1"> ... </thread> </core> <core id="0x1"> <thread id="0x2"> ... </thread> <thread id="0x3"> ... </thread> </core> <core id="0x2"> <thread id="0x4"> ... </thread> <thread id="0x5"> ... </thread> </core> <core id="0x3"> <thread id="0x6"> ... </thread> <thread id="0x7"> ... </thread> </core> </die> 2. The CPU models identified by the quadruple (family_id, model_id, core_type, native_model_id). Each model is described by its brandstring and capabilities, both of which are fetched from CPUID leaves. <model description="Intel(R) Core(TM) i7-7700 CPU @ 3.60GHz"> <family_id>0x6</family_id> <model_id>0x9e</model_id> <core_type></core_type> <native_model_id></native_model_id> <capability id="sse3"/> <capability id="pclmulqdq"/> <capability id="dtes64"/> <capability id="monitor"/> ... </model> Tracked-On: #5922 Signed-off-by: Junjie Mao <junjie.mao@intel.com> |
||
---|---|---|
.. | ||
acpi_gen | ||
acpi_template | ||
board_config | ||
board_inspector | ||
config_app | ||
data | ||
hv_config | ||
kconfig | ||
launch_config | ||
library | ||
scenario_config | ||
schema | ||
static_allocators | ||
xforms | ||
README |
folder structure Kconfig : Select working scenario and target board, configure ACRN hypervisor capabilities and features. target : Get target board information under native Linux environment and generate board_info XML. board_config : Parse board_info XML and scenario XML to generate board related configuration files under misc/acrn-config/xmls/board-xmls/ folder. scenario_config : Parse board_info XML and scenario XML to generate scenario based VM configuration files under misc/acrn-config/xmls/config-xmls/$(BOARD)/ folder. launch_config : Parse board_info XML, scenario XML and devicemodel param XML to generate launch script for post-launched vm under misc/acrn-config/xmls/config-xmls/$(BOARD)/ folder. library : The folder stores shared software modules or libs for acrn-config offline tool.