[libvirt] [PATCH RESEND 0/4] Add support for Hygon Dhyana CPU

Yingle Hou posted 4 patches 4 years, 11 months ago
Test syntax-check failed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/cover.1576075683.git.houyingle@hygon.cn
src/cpu/cpu_x86.c                                  |    2 +-
src/cpu_map/Makefile.inc.am                        |    1 +
src/cpu_map/index.xml                              |    3 +
src/cpu_map/x86_Dhyana.xml                         |   70 +
src/cpu_map/x86_vendors.xml                        |    1 +
tests/cputest.c                                    |    1 +
...86_64-cpuid-Hygon-C86-7185-32-core-disabled.xml |    7 +
...x86_64-cpuid-Hygon-C86-7185-32-core-enabled.xml |    9 +
.../x86_64-cpuid-Hygon-C86-7185-32-core-guest.xml  |   16 +
.../x86_64-cpuid-Hygon-C86-7185-32-core-host.xml   |   17 +
.../x86_64-cpuid-Hygon-C86-7185-32-core-json.xml   |   12 +
.../x86_64-cpuid-Hygon-C86-7185-32-core.json       | 1631 ++++++++++++++++++++
.../x86_64-cpuid-Hygon-C86-7185-32-core.sig        |    4 +
.../x86_64-cpuid-Hygon-C86-7185-32-core.xml        |   54 +
tests/domaincapsdata/qemu_4.1.0-q35.x86_64.xml     |    1 +
tests/domaincapsdata/qemu_4.1.0-tcg.x86_64.xml     |    1 +
tests/domaincapsdata/qemu_4.1.0.x86_64.xml         |    1 +
tests/domaincapsdata/qemu_4.2.0-q35.x86_64.xml     |    1 +
tests/domaincapsdata/qemu_4.2.0-tcg.x86_64.xml     |    1 +
tests/domaincapsdata/qemu_4.2.0.x86_64.xml         |    1 +
20 files changed, 1833 insertions(+), 1 deletion(-)
create mode 100644 src/cpu_map/x86_Dhyana.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Hygon-C86-7185-32-core-disabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Hygon-C86-7185-32-core-enabled.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Hygon-C86-7185-32-core-guest.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Hygon-C86-7185-32-core-host.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Hygon-C86-7185-32-core-json.xml
create mode 100644 tests/cputestdata/x86_64-cpuid-Hygon-C86-7185-32-core.json
create mode 100644 tests/cputestdata/x86_64-cpuid-Hygon-C86-7185-32-core.sig
create mode 100644 tests/cputestdata/x86_64-cpuid-Hygon-C86-7185-32-core.xml
[libvirt] [PATCH RESEND 0/4] Add support for Hygon Dhyana CPU
Posted by Yingle Hou 4 years, 11 months ago
As a Joint Venture between AMD and Haiguang Information Technology Co., Ltd.,
Hygon aims to provide x86 server processor in China market. The first
generation processor Dhyana (family 18h) shares similar architecture with
AMD family 17h.

As Dhyana support in QEMU already have been merged in qemu-4.1.0 [1], to add
Dhyana support in libvirt, we have added a new Dhyana CPU model file
x86_Dhyana.xml in cpu_map directory, and also we have added a series of
Dhyana test files.

We have tested the patches on Hygon Dhyana machine with the result that it
has successfully worked as expected.

Reference:
[1] https://patchwork.kernel.org/patch/10902889/

Yingle Hou (4):
  cpu: Remove the verification conditions of the model in the x86
    signatures
  cpu: Add new Dhyana CPU model
  cputest: Add CPUID data for Hygon Dhyana 7185 32-core Processor
  domaincapstest: Add CPU model Dhyana to QEMU

 src/cpu/cpu_x86.c                                  |    2 +-
 src/cpu_map/Makefile.inc.am                        |    1 +
 src/cpu_map/index.xml                              |    3 +
 src/cpu_map/x86_Dhyana.xml                         |   70 +
 src/cpu_map/x86_vendors.xml                        |    1 +
 tests/cputest.c                                    |    1 +
 ...86_64-cpuid-Hygon-C86-7185-32-core-disabled.xml |    7 +
 ...x86_64-cpuid-Hygon-C86-7185-32-core-enabled.xml |    9 +
 .../x86_64-cpuid-Hygon-C86-7185-32-core-guest.xml  |   16 +
 .../x86_64-cpuid-Hygon-C86-7185-32-core-host.xml   |   17 +
 .../x86_64-cpuid-Hygon-C86-7185-32-core-json.xml   |   12 +
 .../x86_64-cpuid-Hygon-C86-7185-32-core.json       | 1631 ++++++++++++++++++++
 .../x86_64-cpuid-Hygon-C86-7185-32-core.sig        |    4 +
 .../x86_64-cpuid-Hygon-C86-7185-32-core.xml        |   54 +
 tests/domaincapsdata/qemu_4.1.0-q35.x86_64.xml     |    1 +
 tests/domaincapsdata/qemu_4.1.0-tcg.x86_64.xml     |    1 +
 tests/domaincapsdata/qemu_4.1.0.x86_64.xml         |    1 +
 tests/domaincapsdata/qemu_4.2.0-q35.x86_64.xml     |    1 +
 tests/domaincapsdata/qemu_4.2.0-tcg.x86_64.xml     |    1 +
 tests/domaincapsdata/qemu_4.2.0.x86_64.xml         |    1 +
 20 files changed, 1833 insertions(+), 1 deletion(-)
 create mode 100644 src/cpu_map/x86_Dhyana.xml
 create mode 100644 tests/cputestdata/x86_64-cpuid-Hygon-C86-7185-32-core-disabled.xml
 create mode 100644 tests/cputestdata/x86_64-cpuid-Hygon-C86-7185-32-core-enabled.xml
 create mode 100644 tests/cputestdata/x86_64-cpuid-Hygon-C86-7185-32-core-guest.xml
 create mode 100644 tests/cputestdata/x86_64-cpuid-Hygon-C86-7185-32-core-host.xml
 create mode 100644 tests/cputestdata/x86_64-cpuid-Hygon-C86-7185-32-core-json.xml
 create mode 100644 tests/cputestdata/x86_64-cpuid-Hygon-C86-7185-32-core.json
 create mode 100644 tests/cputestdata/x86_64-cpuid-Hygon-C86-7185-32-core.sig
 create mode 100644 tests/cputestdata/x86_64-cpuid-Hygon-C86-7185-32-core.xml

-- 
1.8.3.1


--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] [PATCH RESEND 0/4] Add support for Hygon Dhyana CPU
Posted by Daniel P. Berrangé 4 years, 11 months ago
On Thu, Dec 12, 2019 at 10:58:17AM +0800, Yingle Hou wrote:
> As a Joint Venture between AMD and Haiguang Information Technology Co., Ltd.,
> Hygon aims to provide x86 server processor in China market. The first
> generation processor Dhyana (family 18h) shares similar architecture with
> AMD family 17h.
> 
> As Dhyana support in QEMU already have been merged in qemu-4.1.0 [1], to add
> Dhyana support in libvirt, we have added a new Dhyana CPU model file
> x86_Dhyana.xml in cpu_map directory, and also we have added a series of
> Dhyana test files.
> 
> We have tested the patches on Hygon Dhyana machine with the result that it
> has successfully worked as expected.

Thanks for your contribution & apologies for the delay in reviewing
it. I've squashed patch 4 into patch 2 and merged this.


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list