mbox series

[V5,0/4] Introduce getHost support for ARM CPU driver

Message ID TY2PR01MB31139A7E32055F8EC806098F99BF0@TY2PR01MB3113.jpnprd01.prod.outlook.com
Headers show
Series Introduce getHost support for ARM CPU driver | expand

Message

Zhenyu Zheng May 13, 2020, 10:48 a.m. UTC
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@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

Comments

Jiri Denemark May 15, 2020, 9:55 a.m. UTC | #1
On Wed, May 13, 2020 at 18:48:28 +0800, Zhenyu Zheng wrote:
> 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@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


Nice, there's a few minor issues that needs fixing, but since I already
did all of them and really checked the code compiles fine after each
patch and tested it can still detect the host CPU, I'll squash the
suggested changes and push the series.

Reviewed-by: Jiri Denemark <jdenemar@redhat.com>