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

Zhenyu Zheng posted 4 patches 3 years, 11 months ago
Only 0 patches received!
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
[PATCH V5 0/4] Introduce getHost support for ARM CPU driver
Posted by Zhenyu Zheng 3 years, 11 months ago
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


Re: [PATCH V5 0/4] Introduce getHost support for ARM CPU driver
Posted by Jiri Denemark 3 years, 11 months ago
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>