Re: [PATCH V3] Modify virCPUarmCompare to perform compare actions

2020-09-24 Thread Zhenyu Zheng
Thanks alot, I've addressed the comments and updated the patch to V4, please have a look. BR On Thu, Sep 24, 2020 at 1:30 AM Jiri Denemark wrote: > On Wed, Sep 16, 2020 at 16:58:03 +0800, Zhenyu Zheng wrote: > > Modify virCPUarmCompare in cpu_arm.c to perform compare action. >

[PATCH V4] Modify virCPUarmCompare to perform compare actions

2020-09-24 Thread Zhenyu Zheng
. Signed-off-by: Zhenyu Zheng --- src/cpu/cpu_arm.c | 39 --- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/src/cpu/cpu_arm.c b/src/cpu/cpu_arm.c index 939a3b8390..64bd0f03c2 100644 --- a/src/cpu/cpu_arm.c +++ b/src/cpu/cpu_arm.c @@ -463,10

Re: [PATCH V3] Modify virCPUarmCompare to perform compare actions

2020-09-21 Thread Zhenyu Zheng
Ping for reviews. Thanks in advance On Wed, Sep 16, 2020 at 4:59 PM Zhenyu Zheng wrote: > Modify virCPUarmCompare in cpu_arm.c to perform compare action. > This patch only adds host to host CPU compare, the rest cases > remains the same. This is useful for source and destination host

Re: [PATCH] Modify virCPUarmCompare to perform compare actions

2020-09-18 Thread Zhenyu Zheng
Thanks, I've updated the codes, please have a look :), the topic of the mail is [PATCH V3] Modify virCPUarmCompare to perform compare actions BR, Zhenyu On Fri, Sep 18, 2020 at 8:01 PM Jiri Denemark wrote: > On Mon, Sep 07, 2020 at 20:15:59 +0800, Zhenyu Zheng wrote: > > So the sui

[PATCH V3] Modify virCPUarmCompare to perform compare actions

2020-09-16 Thread Zhenyu Zheng
. Signed-off-by: Zhenyu Zheng --- src/cpu/cpu_arm.c | 43 +++ 1 file changed, 39 insertions(+), 4 deletions(-) diff --git a/src/cpu/cpu_arm.c b/src/cpu/cpu_arm.c index 939a3b8390..b420b14e86 100644 --- a/src/cpu/cpu_arm.c +++ b/src/cpu/cpu_arm.c @@ -463,11

Re: [PATCH V2] Modify virCPUarmCompare to perform compare actions

2020-09-16 Thread Zhenyu Zheng
oh, yes, thanks for the correction, I've messed this up with another version of code. On Wed, Sep 16, 2020 at 3:20 PM Peter Krempa wrote: > On Wed, Sep 16, 2020 at 11:04:58 +0800, Zhenyu Zheng wrote: > > Modify virCPUarmCompare in cpu_arm.c to perform compare action. > > This

[PATCH V2] Modify virCPUarmCompare to perform compare actions

2020-09-15 Thread Zhenyu Zheng
. Signed-off-by: Zhenyu Zheng --- src/cpu/cpu_arm.c | 51 +++ 1 file changed, 47 insertions(+), 4 deletions(-) diff --git a/src/cpu/cpu_arm.c b/src/cpu/cpu_arm.c index 939a3b8390..e8581ec31f 100644 --- a/src/cpu/cpu_arm.c +++ b/src/cpu/cpu_arm.c

Re: [PATCH] Modify virCPUarmCompare to perform compare actions

2020-09-07 Thread Zhenyu Zheng
7, 2020 at 7:16 PM Jiri Denemark wrote: > On Mon, Sep 07, 2020 at 09:21:02 +0800, Zhenyu Zheng wrote: > > Thanks alot for the reply, > > > > This sounds like a valid use case (not sure it is that useful), but we > > > need to be careful. But we should ma

Re: [PATCH] Modify virCPUarmCompare to perform compare actions

2020-09-06 Thread Zhenyu Zheng
e original host CPU definition, and we actually compare the source host and destination host CPU definitions, I think this suits your ideas too) and for other cases, we just return IDENTICAL as is. What do you think? Thanks alot. Zhenyu Zheng On Fri, Sep 4, 2020 at 8:00 PM Jiri Denemark wrote:

Re: [PATCH] Modify virCPUarmCompare to perform compare actions

2020-09-03 Thread Zhenyu Zheng
800, Zhenyu Zheng wrote: > > Modify virCPUarmCompare in cpu_arm.c to perform > > actual compare actions. Compare host cpu vendor > > and model info with guest cpu as initial implementation, > > as most ARM clouds uses host-passthrogh mode. > > In addition to the low-le

[PATCH] Modify virCPUarmCompare to perform compare actions

2020-08-20 Thread Zhenyu Zheng
Modify virCPUarmCompare in cpu_arm.c to perform actual compare actions. Compare host cpu vendor and model info with guest cpu as initial implementation, as most ARM clouds uses host-passthrogh mode. Signed-off-by: Zhenyu Zheng --- src/cpu/cpu_arm.c | 188

Re: [ovirt-devel] [ARM64] Possiblity to support oVirt on ARM64

2020-07-22 Thread Zhenyu Zheng
Hi, Any other comments for this topic? BR, Zhenyu On Mon, Jul 20, 2020 at 9:17 AM Zhenyu Zheng wrote: > Hi Nir, > > Thanks alot for the quick response and information, actually I also > worked a little bit on libvirt and other from our > team has experiences in qemu, those pr

Re: [ovirt-devel] [ARM64] Possiblity to support oVirt on ARM64

2020-07-19 Thread Zhenyu Zheng
of resources are more suitable, our current resources are mostly VMs from public cloud, will that be OK? BR, Zhenyu On Mon, Jul 20, 2020 at 2:07 AM Nir Soffer wrote: > On Sun, Jul 19, 2020 at 5:04 PM Zhenyu Zheng > wrote: > > > > Hi oVirt, > > > > We are currently tryi

Re: [PATCH V3 0/5] Introduce getHost support for ARM CPU driver

2020-05-13 Thread Zhenyu Zheng
Thanks alot for the review, I've update the patches as suggested as V5 and attached the pipeline CI for the last patch to show build results for the series. On Wed, May 13, 2020 at 9:09 AM Zhenyu Zheng wrote: > Hi Jirka, > > Thanks alot for the review and suggestions, I will try to

Re: [PATCH V5 4/4] cpu_map: Introduce ARM cpu models

2020-05-13 Thread Zhenyu Zheng
pipeline result for the series: https://gitlab.com/ZhengZhenyu/libvirt/pipelines/145532824 On Wed, May 13, 2020 at 6:51 PM Zhenyu Zheng wrote: > Introduce vendors and some commonly used models > for ARM arch, these will be used for virConnectionGetCapabilities > for ARM CPUs. >

[PATCH V5 3/4] cpu: Introduce getHost support for ARM CPU driver

2020-05-13 Thread Zhenyu Zheng
Introduce getHost support for ARM CPU driver, read CPU vendor_id, part_id and flags from registers directly. These codes will only be compiled on aarch64 hardware. Signed-off-by: Zhenyu Zheng --- src/cpu/cpu_arm.c | 162 ++ 1 file changed, 162

[PATCH V5 2/4] cpu: Add helper functions to parse vendor and model

2020-05-13 Thread Zhenyu Zheng
Add helper functions to parse vendor and model for ARM CPUs, and use them as callbacks when load cpu maps. Signed-off-by: Zhenyu Zheng --- src/cpu/cpu_arm.c | 159 +- 1 file changed, 158 insertions(+), 1 deletion(-) diff --git a/src/cpu/cpu_arm.c b

[PATCH V5 4/4] cpu_map: Introduce ARM cpu models

2020-05-13 Thread Zhenyu Zheng
Introduce vendors and some commonly used models for ARM arch, these will be used for virConnectionGetCapabilities for ARM CPUs. Signed-off-by: Zhenyu Zheng --- src/cpu_map/Makefile.inc.am | 7 +++ src/cpu_map/arm_Falkor.xml| 6 ++ src/cpu_map/arm_Kunpeng-920.xml | 6

[PATCH V5 1/4] cpu: Introduce virCPUarmData and related struts

2020-05-13 Thread Zhenyu Zheng
Introduce virCPUarmData to virCPUData and related structs to cpu_arm.c for ARM cpus. Signed-off-by: Zhenyu Zheng --- src/cpu/Makefile.inc.am | 1 + src/cpu/cpu.h | 2 ++ src/cpu/cpu_arm.c | 80 - src/cpu/cpu_arm_data.h | 32

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

2020-05-13 Thread Zhenyu Zheng
-by: Zhenyu Zheng 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

Re: [PATCH V3 0/5] Introduce getHost support for ARM CPU driver

2020-05-12 Thread Zhenyu Zheng
d > > and CPU flags of local CPU from corresponding registers. > > > > Signed-off-by: Zhenyu Zheng > > The emails come from ZhengZhenyu , but the > signed-off-by line says something else. Could you make them consistent? > > BTW, I'm intentionally replying to v3 as v4 was only su

Re: [PATCH V3 5/5] cpu: Introduce getHost support for ARM CPU driver

2020-05-05 Thread Zhenyu Zheng
Thanks for the reply, any updates for the review? On Wed, Apr 29, 2020 at 11:45 PM Jiri Denemark wrote: > Hi. > > On Wed, Apr 29, 2020 at 16:03:19 +0800, Zhenyu Zheng wrote: > > Hi Jiri, > > > > Thanks alot for the help, I've updated the series to v4 and also at

Re: [PATCH V3 5/5] cpu: Introduce getHost support for ARM CPU driver

2020-04-29 Thread Zhenyu Zheng
Hi Jiri, Thanks alot for the help, I've updated the series to v4 and also attached pipeline results for each patch as suggested. BR, On Tue, Apr 28, 2020 at 7:11 PM Zhenyu Zheng wrote: > Thanks alot I will check again about the patch series. > > On Tue, Apr 28, 2020 at 6:39 PM Jiri

Re: [PATCH V4 4/5] cpu: Introduce getHost support for ARM CPU driver

2020-04-29 Thread Zhenyu Zheng
pipeline test result for this patch: https://gitlab.com/ZhengZhenyu/libvirt/pipelines/140926826 On Wed, Apr 29, 2020 at 3:55 PM Zhenyu Zheng wrote: > Introduce getHost support for ARM CPU driver, read > CPU vendor_id, part_id and flags from registers > directly. These codes

Re: [PATCH V4 5/5] cpu_map: Introduce ARM cpu models

2020-04-29 Thread Zhenyu Zheng
pipeline test result for this patch: https://gitlab.com/ZhengZhenyu/libvirt/-/commit/89878b01d1ed6848fe9dfb46192f8f5694efdd32 On Wed, Apr 29, 2020 at 3:56 PM Zhenyu Zheng wrote: > Introduce vendors and some commonly used models > for ARM arch, these will b

Re: [PATCH V4 3/5] cpu: Add helper funtions to parse vendor and model

2020-04-29 Thread Zhenyu Zheng
pipeline test result for this patch: https://gitlab.com/ZhengZhenyu/libvirt/pipelines/140916109 On Wed, Apr 29, 2020 at 3:54 PM Zhenyu Zheng wrote: > Add helper functions to parse vendor and model from > xml for ARM arch, and use them as callbacks when > load cpu maps. > > Signed

Re: [PATCH V4 2/5] cpu: Introduce ARM related structs

2020-04-29 Thread Zhenyu Zheng
pipeline test results for this patch: https://gitlab.com/ZhengZhenyu/libvirt/pipelines/140890614 On Wed, Apr 29, 2020 at 3:51 PM Zhenyu Zheng wrote: > Introduce vendor and model struct and related > cleanup functions for ARM cpu. > > Signed-off-by: Zhenyu Zheng > --- > src/

Re: [PATCH V4 1/5] cpu: Introduce virCPUarmData to virCPUData

2020-04-29 Thread Zhenyu Zheng
pipeline test result for this patch: https://gitlab.com/ZhengZhenyu/libvirt/pipelines/140885336 On Wed, Apr 29, 2020 at 3:57 PM Zhenyu Zheng wrote: > Introduce virCPUarmData to virCPUData > > Signed-off-by: Zhenyu Zheng > --- > src/cpu/Makefile.inc.am | 1 + > src/cpu/cp

[PATCH V4 1/5] cpu: Introduce virCPUarmData to virCPUData

2020-04-29 Thread Zhenyu Zheng
Introduce virCPUarmData to virCPUData Signed-off-by: Zhenyu Zheng --- src/cpu/Makefile.inc.am | 1 + src/cpu/cpu.h | 2 ++ src/cpu/cpu_arm_data.h | 31 +++ 3 files changed, 34 insertions(+) create mode 100644 src/cpu/cpu_arm_data.h diff --git a/src/cpu

[PATCH V4 5/5] cpu_map: Introduce ARM cpu models

2020-04-29 Thread Zhenyu Zheng
Introduce vendors and some commonly used models for ARM arch, these will be used for virConnectionGetCapabilities for ARM CPUs. Signed-off-by: Zhenyu Zheng --- src/cpu_map/Makefile.inc.am | 7 +++ src/cpu_map/arm_Falkor.xml| 16 src/cpu_map/arm_Kunpeng-920

[PATCH V4 4/5] cpu: Introduce getHost support for ARM CPU driver

2020-04-29 Thread Zhenyu Zheng
Introduce getHost support for ARM CPU driver, read CPU vendor_id, part_id and flags from registers directly. These codes will only be compiled on aarch64 hardwares. Signed-off-by: Zhenyu Zheng --- src/cpu/cpu_arm.c | 201 ++ 1 file changed, 201

[PATCH V4 3/5] cpu: Add helper funtions to parse vendor and model

2020-04-29 Thread Zhenyu Zheng
Add helper functions to parse vendor and model from xml for ARM arch, and use them as callbacks when load cpu maps. Signed-off-by: Zhenyu Zheng --- src/cpu/cpu_arm.c | 171 +- 1 file changed, 170 insertions(+), 1 deletion(-) diff --git a/src/cpu

[PATCH V4 2/5] cpu: Introduce ARM related structs

2020-04-29 Thread Zhenyu Zheng
Introduce vendor and model struct and related cleanup functions for ARM cpu. Signed-off-by: Zhenyu Zheng --- src/cpu/cpu_arm.c | 75 +++ 1 file changed, 75 insertions(+) diff --git a/src/cpu/cpu_arm.c b/src/cpu/cpu_arm.c index ee5802198f..d8f571cae3

[PATCH V4 1/5] cpu: Introduce virCPUarmData to virCPUData

2020-04-29 Thread Zhenyu Zheng
Introduce virCPUarmData to virCPUData Signed-off-by: Zhenyu Zheng --- src/cpu/Makefile.inc.am | 1 + src/cpu/cpu.h | 2 ++ src/cpu/cpu_arm_data.h | 31 +++ 3 files changed, 34 insertions(+) create mode 100644 src/cpu/cpu_arm_data.h diff --git a/src/cpu

Re: [PATCH V3 5/5] cpu: Introduce getHost support for ARM CPU driver

2020-04-28 Thread Zhenyu Zheng
Thanks alot I will check again about the patch series. On Tue, Apr 28, 2020 at 6:39 PM Jiri Denemark wrote: > On Wed, Apr 22, 2020 at 15:14:01 +0800, Zhenyu Zheng wrote: > > gitlab CI testing as suggested: > > https://gitlab.com/ZhengZhenyu/libvirt/pipelines/134657317 > >

Re: [PATCH V3 5/5] cpu: Introduce getHost support for ARM CPU driver

2020-04-27 Thread Zhenyu Zheng
ping for reviews On Wed, Apr 22, 2020 at 3:12 PM ZhengZhenyu wrote: > Introduce getHost support for ARM CPU driver, read > CPU vendor_id, part_id and flags from registers > directly. These codes will only be compiled on > aarch64 hardwares. > > Signed-off-by: Zhenyu Zheng

Re: [PATCH V3 4/5] cpu: Add helper funtions to parse vendor and model

2020-04-27 Thread Zhenyu Zheng
ping for reviews On Wed, Apr 22, 2020 at 3:12 PM ZhengZhenyu wrote: > Add helper functions to parse vendor and model from > xml for ARM arch, and use them as callbacks when > load cpu maps. > > Signed-off-by: Zhenyu Zheng > --- > sr

Re: [PATCH V3 0/5] Introduce getHost support for ARM CPU driver

2020-04-27 Thread Zhenyu Zheng
se vendor_id, part_id > and CPU flags of local CPU from corresponding registers. > > Signed-off-by: Zhenyu Zheng > > ZhengZhenyu (5): > cpu_map: Introduce ARM cpu models > cpu: Introduce virCPUarmData to virCPUData > cpu: Introduce ARM related structs > cpu: Add he

Re: [PATCH V3 1/5] cpu_map: Introduce ARM cpu models

2020-04-27 Thread Zhenyu Zheng
ping for reviews On Wed, Apr 22, 2020 at 3:12 PM ZhengZhenyu wrote: > Introduce vendors and some commonly used models > for ARM arch, these will be used for virConnectionGetCapabilities > for ARM CPUs. > > Signed-off-by: Zhenyu Zheng > --- > src/cpu_map/Makef

Re: [PATCH V3 3/5] cpu: Introduce ARM related structs

2020-04-27 Thread Zhenyu Zheng
ping for reviews On Wed, Apr 22, 2020 at 3:12 PM ZhengZhenyu wrote: > Introduce vendor and model struct and related > cleanup functions for ARM cpu. > > Signed-off-by: Zhenyu Zheng > --- > src/cpu/cpu_arm.c | 73 +++ >

Re: [PATCH V3 2/5] cpu: Introduce virCPUarmData to virCPUData

2020-04-27 Thread Zhenyu Zheng
ping for reviews On Wed, Apr 22, 2020 at 3:12 PM ZhengZhenyu wrote: > Introduce virCPUarmData to virCPUData > > Signed-off-by: Zhenyu Zheng > --- > src/cpu/Makefile.inc.am | 1 + > src/cpu/cpu.h | 2 ++ > src/cpu/cpu_arm_data.h | 31 +

Re: [PATCH V3 5/5] cpu: Introduce getHost support for ARM CPU driver

2020-04-22 Thread Zhenyu Zheng
compiled on > aarch64 hardwares. > > Signed-off-by: Zhenyu Zheng > --- > src/cpu/cpu_arm.c | 204 ++ > 1 file changed, 204 insertions(+) > > diff --git a/src/cpu/cpu_arm.c b/src/cpu/cpu_arm.c > index 6e9ff9bf11..ec50a5615d 1006

Re: [PATCH V2 5/5] cpu: Introduce getHost support for ARM CPU driver

2020-04-20 Thread Zhenyu Zheng
Yes, I will do that. On Mon, Apr 20, 2020 at 10:12 PM Jiri Denemark wrote: > On Fri, Apr 17, 2020 at 16:53:18 +0800, Zhenyu Zheng wrote: > > Ping for reviews > > Could you please resend the new version of patches as a separate series > (don't forget to update the subje

Re: [PATCH V2 4/5] cpu: Add helper funtions to parse vendor and model

2020-04-17 Thread Zhenyu Zheng
ping for reviews On Fri, Apr 10, 2020 at 3:58 PM Zhenyu Zheng wrote: > >> Add helper functions to parse vendor and model from >> xml for ARM arch, and use them as callbacks when >> load cpu maps. >> >> Signed-off-by: Zhenyu Zheng >

Re: [PATCH V2 5/5] cpu: Introduce getHost support for ARM CPU driver

2020-04-17 Thread Zhenyu Zheng
Ping for reviews On Fri, Apr 10, 2020 at 5:55 PM Andrea Bolognani wrote: > On Thu, 2020-04-09 at 13:03 +0200, Jiri Denemark wrote: > > On Thu, Apr 02, 2020 at 17:03:59 +0800, Zhenyu Zheng wrote: > > > +static int > > > +armCpuDataFromRegs(virCPUarmData *data) >

Re: [PATCH V2 5/5] cpu: Introduce getHost support for ARM CPU driver

2020-04-10 Thread Zhenyu Zheng
ZhengZhenyu wrote: > Introduce getHost support for ARM CPU driver, read > CPU vendor_id, part_id and flags from registers > directly. > > Signed-off-by: Zhenyu Zheng > --- > src/cpu/cpu_arm.c | 202 +- > 1 file changed, 201 i

Re: [PATCH V2 4/5] cpu: Add helper funtions to parse vendor and model

2020-04-10 Thread Zhenyu Zheng
> > > Add helper functions to parse vendor and model from > xml for ARM arch, and use them as callbacks when > load cpu maps. > > Signed-off-by: Zhenyu Zheng > > --- > src/cpu/cpu_arm.c | 171 +- > 1 file chang

[PATCH V2 5/5] cpu: Introduce getHost support for ARM CPU driver

2020-04-09 Thread Zhenyu Zheng
Introduce getHost support for ARM CPU driver, read CPU vendor_id, part_id and flags from registers directly. Signed-off-by: Zhenyu Zheng --- src/cpu/cpu_arm.c | 193 +- 1 file changed, 192 insertions(+), 1 deletion(-) diff --git a/src/cpu/cpu_arm.c b

[PATCH V2 4/5] cpu: Add helper funtions to parse vendor and model

2020-04-09 Thread Zhenyu Zheng
Add helper functions to parse vendor and model from xml for ARM arch, and use them as callbacks when load cpu maps. Signed-off-by: Zhenyu Zheng --- src/cpu/cpu_arm.c | 170 +- 1 file changed, 168 insertions(+), 2 deletions(-) diff --git a/src/cpu

[PATCH V2 3/5] cpu: Introduce ARM related structs

2020-04-09 Thread Zhenyu Zheng
Introduce vendor and model struct and related cleanup functions for ARM cpu. Signed-off-by: Zhenyu Zheng --- src/cpu/cpu_arm.c | 75 +++ 1 file changed, 75 insertions(+) diff --git a/src/cpu/cpu_arm.c b/src/cpu/cpu_arm.c index ee5802198f..d8f571cae3

Re: [PATCH V2 3/5] cpu: Introduce ARM related structs

2020-04-09 Thread Zhenyu Zheng
Introduce vendor and model struct and related cleanup functions for ARM cpu. Signed-off-by: Zhenyu Zheng --- src/cpu/cpu_arm.c | 75 +++ 1 file changed, 75 insertions(+) diff --git a/src/cpu/cpu_arm.c b/src/cpu/cpu_arm.c index ee5802198f..d8f571cae3

[PATCH V2 3/5] cpu: Introduce ARM related structs

2020-04-09 Thread Zhenyu Zheng
Introduce vendor and model struct and related cleanup functions for ARM cpu. Signed-off-by: Zhenyu Zheng --- src/cpu/cpu_arm.c | 75 +++ 1 file changed, 75 insertions(+) diff --git a/src/cpu/cpu_arm.c b/src/cpu/cpu_arm.c index ee5802198f..d8f571cae3

Re: [PATCH V2 5/5] cpu: Introduce getHost support for ARM CPU driver

2020-04-09 Thread Zhenyu Zheng
Thanks for the info, as for ARM testing, we are happy to provide some machines if the community likes. BR, On Thu, Apr 9, 2020 at 8:03 PM Daniel P. Berrangé wrote: > On Thu, Apr 09, 2020 at 07:52:27PM +0800, Zhenyu Zheng wrote: > > Hi, > > > > Thanks alot for all the

Re: [PATCH V2 5/5] cpu: Introduce getHost support for ARM CPU driver

2020-04-09 Thread Zhenyu Zheng
0 at 7:03 PM Jiri Denemark wrote: > On Thu, Apr 02, 2020 at 17:03:59 +0800, Zhenyu Zheng wrote: > > Introduce getHost support for ARM CPU driver, read > > CPU vendor_id, part_id and flags from registers > > directly. > > > > Signed-off-by: Zhenyu Zhen

Re: [PATCH 5/5] cpu: Introduce getHost supoort for ARM

2020-04-02 Thread Zhenyu Zheng
, Mar 30, 2020 at 8:27 PM Daniel P. Berrangé wrote: > Re-adding libvir-list to the CC line. > > On Mon, Mar 30, 2020 at 08:20:44PM +0800, Zhenyu Zheng wrote: > > Hi, yes, I think we can do that using inline assembly, I can check it > out > > if you think it is a better solut

[PATCH V2 0/5] Introduce getHost support for ARM CPU driver

2020-04-02 Thread Zhenyu Zheng
-by: Zhenyu Zheng Zhenyu Zheng (5): cpu_map: Introduce ARM cpu models cpu: Introduce virCPUarmData to virCPUData cpu: Introduce ARM related structs cpu: Add helper funtions to parse vendor and model cpu: Introduce getHost support for ARM CPU driver src/cpu/Makefile.inc.am | 1

[PATCH V2 5/5] cpu: Introduce getHost support for ARM CPU driver

2020-04-02 Thread Zhenyu Zheng
Introduce getHost support for ARM CPU driver, read CPU vendor_id, part_id and flags from registers directly. Signed-off-by: Zhenyu Zheng --- src/cpu/cpu_arm.c | 194 +- 1 file changed, 193 insertions(+), 1 deletion(-) diff --git a/src/cpu/cpu_arm.c b

[PATCH V2 1/5] cpu_map: Introduce ARM cpu models

2020-04-02 Thread Zhenyu Zheng
Introduce vendors and some commonly used models for ARM arch, these will be used for virConnectionGetCapabilities for ARM CPUs. Signed-off-by: Zhenyu Zheng --- src/cpu_map/Makefile.inc.am | 7 +++ src/cpu_map/arm_Falkor.xml| 16 src/cpu_map/arm_Kunpeng-920

[PATCH V2 2/5] cpu: Introduce virCPUarmData to virCPUData

2020-04-02 Thread Zhenyu Zheng
Introduce virCPUarmData to virCPUData Signed-off-by: Zhenyu Zheng --- src/cpu/Makefile.inc.am | 1 + src/cpu/cpu.h | 2 ++ src/cpu/cpu_arm_data.h | 31 +++ 3 files changed, 34 insertions(+) create mode 100644 src/cpu/cpu_arm_data.h diff --git a/src/cpu

[PATCH V2 3/5] cpu: Introduce ARM related structs

2020-04-02 Thread Zhenyu Zheng
Introduce vendor and model struct and related cleanup functions for ARM cpu. Signed-off-by: Zhenyu Zheng --- src/cpu/cpu_arm.c | 75 +++ 1 file changed, 75 insertions(+) diff --git a/src/cpu/cpu_arm.c b/src/cpu/cpu_arm.c index ee5802198f..c757c24a37

[PATCH V2 4/5] cpu: Add helper funtions to parse vendor and model

2020-04-02 Thread Zhenyu Zheng
Add helper functions to parse vendor and model from xml for ARM arch, and use them as callbacks when load cpu maps. Signed-off-by: Zhenyu Zheng --- src/cpu/cpu_arm.c | 176 +- 1 file changed, 174 insertions(+), 2 deletions(-) diff --git a/src/cpu

Re: [PATCH 5/5] cpu: Introduce getHost supoort for ARM

2020-03-30 Thread Zhenyu Zheng
, to avoid re-implement the translation. Here is the discussion: https://www.redhat.com/archives/libvir-list/2020-March/msg00812.html BR, Zhenyu On Mon, Mar 30, 2020 at 7:27 PM Daniel P. Berrangé wrote: > On Fri, Mar 27, 2020 at 04:52:25PM +0800, Zhenyu Zheng wrote: > > Introduce getHos

[PATCH 1/5] cpu_map: Introduce arm CPU models

2020-03-27 Thread Zhenyu Zheng
From: Zhenyu Zheng Introduce vendors and models information for ARM arch, these will be used for virConnectGetCapabilities on ARM arch. Signed-off-by: Zhenyu Zheng --- src/cpu_map/Makefile.inc.am | 7 +++ src/cpu_map/arm_Falkor.xml| 15 +++ src/cpu_map

[PATCH 3/5] cpu: Introduce arm related structs

2020-03-27 Thread Zhenyu Zheng
Introduce arm related structs to cpu_arm.c Signed-of-by: Zhenyu Zheng --- src/cpu/cpu_arm.c | 71 +++ 1 file changed, 71 insertions(+) diff --git a/src/cpu/cpu_arm.c b/src/cpu/cpu_arm.c index ee5802198f..2a05f43118 100644 --- a/src/cpu/cpu_arm.c

[PATCH 2/5] cpu: Introduce virCPUarmData to virCPUData

2020-03-27 Thread Zhenyu Zheng
Introduce virCPUarmData to virCPUData Signed-off-by: Zhenyu Zheng --- src/cpu/cpu.h | 2 ++ src/cpu/cpu_arm_data.h | 32 2 files changed, 34 insertions(+) create mode 100644 src/cpu/cpu_arm_data.h diff --git a/src/cpu/cpu.h b/src/cpu/cpu.h index

[PATCH 4/5] cpu: Add helper functions to parse vendor and model for ARM

2020-03-27 Thread Zhenyu Zheng
Add helper functions to parse vendor and model for ARM and use them as callback when load maps. Signed-of-by: Zhenyu Zheng --- src/cpu/cpu_arm.c | 143 +- 1 file changed, 142 insertions(+), 1 deletion(-) diff --git a/src/cpu/cpu_arm.c b/src/cpu

[PATCH 0/5] Introduce getHost support for ARM cpus

2020-03-27 Thread Zhenyu Zheng
Introduce getHost support for ARM cpus. First add some common ARM server models to cpu_map, then add some helper methods to parse and load them. The 'lscpu' command from 'util-linux' provides very good data for cpu information, we can parse them directly. Zhenyu Zheng (5): cpu_map: Introduce

[PATCH 3/5] cpu: Introduce arm related structs

2020-03-27 Thread Zhenyu Zheng
Introduce arm related structs to cpu_arm.c --- src/cpu/cpu_arm.c | 71 +++ 1 file changed, 71 insertions(+) diff --git a/src/cpu/cpu_arm.c b/src/cpu/cpu_arm.c index ee5802198f..2a05f43118 100644 --- a/src/cpu/cpu_arm.c +++ b/src/cpu/cpu_arm.c @@ -26,6

[PATCH 0/5] Introduce getHost support for ARM cpus

2020-03-27 Thread Zhenyu Zheng
Introduce getHost support for ARM cpus. First add some common ARM server models to cpu_map, then add some helper methods to parse and load them. The 'lscpu' command from 'util-linux' provides very good data for cpu information, we can parse them directly. Zhenyu Zheng (5): cpu_map: Introduce

[PATCH 0/5] Introduce getHost support for ARM cpus

2020-03-27 Thread Zhenyu Zheng
Introduce getHost support for ARM cpus. First add some common ARM server models to cpu_map, then add some helper methods to parse and load them. The 'lscpu' command from 'util-linux' provides very good data for cpu information, we can parse them directly. Signed-of-by: Zhenyu Zheng Zhenyu Zheng

[PATCH 3/5] cpu: Introduce arm related structs

2020-03-27 Thread Zhenyu Zheng
Introduce arm related structs cpu_arm.c --- src/cpu/cpu_arm.c | 71 +++ 1 file changed, 71 insertions(+) diff --git a/src/cpu/cpu_arm.c b/src/cpu/cpu_arm.c index ee5802198f..2a05f43118 100644 --- a/src/cpu/cpu_arm.c +++ b/src/cpu/cpu_arm.c @@ -26,6

[PATCH 5/5] cpu: Introduce getHost supoort for ARM

2020-03-27 Thread Zhenyu Zheng
Introduce getHost support for ARM, use data from 'lscpu' cmd result. 'util-linux/lscpu' provided a very good translation of ARM cpu data start from release v2.32, use it directly to avoid re-implement the translation. Signed-of-by: Zhenyu Zheng --- src/cpu/cpu_arm.c | 198

Re: Propose to extend the capability of arm cpu driver

2020-03-23 Thread Zhenyu Zheng
, Mar 23, 2020 at 11:29 PM Andrea Bolognani wrote: > On Fri, 2020-03-06 at 09:51 +0800, Zhenyu Zheng wrote: > > > The problem is that on many ARM machines the file doesn't contain a > > > whole lot of information, at least not in a form that's suitable for > &g

Re: Propose to extend the capability of arm cpu driver

2020-03-05 Thread Zhenyu Zheng
closes the gap between ARM and X86 a little bit, and we will move the actual founctionality as you mentioned in the future. P.S. my current patch is based on libvirt v5.5.0 Thanks again for the reply. On Fri, Mar 6, 2020 at 1:48 AM Andrea Bolognani wrote: > On Thu, 2020-03-05 at 17:23

Re: Propose to extend the capability of arm cpu driver

2020-03-05 Thread Zhenyu Zheng
or Libvirt prefers reads them directly from registers like currently done in x86 driver? Thanks again, Kevin Zheng On Wed, Mar 4, 2020 at 8:46 PM Andrea Bolognani wrote: > On Wed, 2020-03-04 at 15:15 +0800, Zhenyu Zheng wrote: > > Hello Libvirt, > > > > With more and

Propose to extend the capability of arm cpu driver

2020-03-03 Thread Zhenyu Zheng
, Zhenyu Zheng