Introduce getHost support for ARM CPU driver. First add
some data about commonly used ARM CPU models, and their
vendors into cpu_map, then added some helper methods as
callbacks to load them. Read and parse vendor_id, part_id
and CPU flags of local CPU from corresponding registers.
Signed-off-by: Zhenyu Zheng <zheng.zhenyu(a)outlook.com>
Zhenyu Zheng (4):
cpu: Introduce virCPUarmData and related struts
cpu: Add helper functions to parse vendor and model
cpu: Introduce getHost support for ARM CPU driver
cpu_map: Introduce ARM cpu models
src/cpu/Makefile.inc.am | 1 +
src/cpu/cpu.h | 2 +
src/cpu/cpu_arm.c | 399 +++++++++++++++++++++++++++++-
src/cpu/cpu_arm_data.h | 32 +++
src/cpu_map/Makefile.inc.am | 7 +
src/cpu_map/arm_Falkor.xml | 6 +
src/cpu_map/arm_Kunpeng-920.xml | 6 +
src/cpu_map/arm_ThunderX299xx.xml | 6 +
src/cpu_map/arm_cortex-a53.xml | 6 +
src/cpu_map/arm_cortex-a57.xml | 6 +
src/cpu_map/arm_cortex-a72.xml | 6 +
src/cpu_map/arm_vendors.xml | 14 ++
src/cpu_map/index.xml | 15 ++
13 files changed, 505 insertions(+), 1 deletion(-)
create mode 100644 src/cpu/cpu_arm_data.h
create mode 100644 src/cpu_map/arm_Falkor.xml
create mode 100644 src/cpu_map/arm_Kunpeng-920.xml
create mode 100644 src/cpu_map/arm_ThunderX299xx.xml
create mode 100644 src/cpu_map/arm_cortex-a53.xml
create mode 100644 src/cpu_map/arm_cortex-a57.xml
create mode 100644 src/cpu_map/arm_cortex-a72.xml
create mode 100644 src/cpu_map/arm_vendors.xml
--
2.20.1