[libvirt PATCH 0/3] tests: Add capabilities for QEMU 5.2

Andrea Bolognani posted 3 patches 3 years, 4 months ago
Failed in applying to current master (apply log)
.../qemu_5.2.0-virt.aarch64.xml               |   161 +
tests/domaincapsdata/qemu_5.2.0.aarch64.xml   |   155 +
tests/domaincapsdata/qemu_5.2.0.ppc64.xml     |   120 +
.../caps_5.2.0.aarch64.replies                | 25361 ++++++++++++++
.../caps_5.2.0.aarch64.xml                    |   509 +
.../caps_5.2.0.ppc64.replies                  | 28789 ++++++++++++++++
.../qemucapabilitiesdata/caps_5.2.0.ppc64.xml |  1169 +
.../caps_5.2.0.riscv64.replies                | 21075 +++++++++++
.../caps_5.2.0.riscv64.xml                    |   214 +
...fault-cpu-kvm-virt-4.2.aarch64-latest.args |     4 +-
...fault-cpu-tcg-virt-4.2.aarch64-latest.args |     4 +-
.../aarch64-features-sve.aarch64-latest.args  |     4 +-
...arch64-os-firmware-efi.aarch64-latest.args |     4 +-
.../aarch64-virt-graphics.aarch64-latest.args |     4 +-
.../aarch64-virt-headless.aarch64-latest.args |     4 +-
.../clock-timer-armvtimer.aarch64-latest.args |     4 +-
...ult-video-type-aarch64.aarch64-latest.args |     4 +-
...default-video-type-ppc64.ppc64-latest.args |     4 +-
.../disk-arm-virtio-sd.aarch64-latest.args    |     4 +-
.../iommu-smmuv3.aarch64-latest.args          |     4 +-
...ault-cpu-kvm-pseries-2.7.ppc64-latest.args |     4 +-
...ault-cpu-kvm-pseries-3.1.ppc64-latest.args |     4 +-
...ault-cpu-kvm-pseries-4.2.ppc64-latest.args |     4 +-
...ault-cpu-tcg-pseries-2.7.ppc64-latest.args |     4 +-
...ault-cpu-tcg-pseries-3.1.ppc64-latest.args |     4 +-
...ault-cpu-tcg-pseries-4.2.ppc64-latest.args |     4 +-
.../ppc64-pseries-graphics.ppc64-latest.args  |     4 +-
.../ppc64-pseries-headless.ppc64-latest.args  |     4 +-
.../ppc64-tpmproxy-single.ppc64-latest.args   |     4 +-
.../ppc64-tpmproxy-with-tpm.ppc64-latest.args |     4 +-
.../tpm-emulator-spapr.ppc64-latest.args      |     4 +-
31 files changed, 77619 insertions(+), 22 deletions(-)
create mode 100644 tests/domaincapsdata/qemu_5.2.0-virt.aarch64.xml
create mode 100644 tests/domaincapsdata/qemu_5.2.0.aarch64.xml
create mode 100644 tests/domaincapsdata/qemu_5.2.0.ppc64.xml
create mode 100644 tests/qemucapabilitiesdata/caps_5.2.0.aarch64.replies
create mode 100644 tests/qemucapabilitiesdata/caps_5.2.0.aarch64.xml
create mode 100644 tests/qemucapabilitiesdata/caps_5.2.0.ppc64.replies
create mode 100644 tests/qemucapabilitiesdata/caps_5.2.0.ppc64.xml
create mode 100644 tests/qemucapabilitiesdata/caps_5.2.0.riscv64.replies
create mode 100644 tests/qemucapabilitiesdata/caps_5.2.0.riscv64.xml
[libvirt PATCH 0/3] tests: Add capabilities for QEMU 5.2
Posted by Andrea Bolognani 3 years, 4 months ago
As usual, this is an abridged version of the changes.

For the full version, run

  $ git fetch https://gitlab.com/abologna/libvirt.git caps-5.2

or browse

  https://gitlab.com/abologna/libvirt/-/commits/caps-5.2

Andrea Bolognani (3):
  tests: Add capabilities for QEMU 5.2 on aarch64
  tests: Add capabilities for QEMU 5.2 on ppc64
  tests: Add capabilities for QEMU 5.2 on riscv64

 .../qemu_5.2.0-virt.aarch64.xml               |   161 +
 tests/domaincapsdata/qemu_5.2.0.aarch64.xml   |   155 +
 tests/domaincapsdata/qemu_5.2.0.ppc64.xml     |   120 +
 .../caps_5.2.0.aarch64.replies                | 25361 ++++++++++++++
 .../caps_5.2.0.aarch64.xml                    |   509 +
 .../caps_5.2.0.ppc64.replies                  | 28789 ++++++++++++++++
 .../qemucapabilitiesdata/caps_5.2.0.ppc64.xml |  1169 +
 .../caps_5.2.0.riscv64.replies                | 21075 +++++++++++
 .../caps_5.2.0.riscv64.xml                    |   214 +
 ...fault-cpu-kvm-virt-4.2.aarch64-latest.args |     4 +-
 ...fault-cpu-tcg-virt-4.2.aarch64-latest.args |     4 +-
 .../aarch64-features-sve.aarch64-latest.args  |     4 +-
 ...arch64-os-firmware-efi.aarch64-latest.args |     4 +-
 .../aarch64-virt-graphics.aarch64-latest.args |     4 +-
 .../aarch64-virt-headless.aarch64-latest.args |     4 +-
 .../clock-timer-armvtimer.aarch64-latest.args |     4 +-
 ...ult-video-type-aarch64.aarch64-latest.args |     4 +-
 ...default-video-type-ppc64.ppc64-latest.args |     4 +-
 .../disk-arm-virtio-sd.aarch64-latest.args    |     4 +-
 .../iommu-smmuv3.aarch64-latest.args          |     4 +-
 ...ault-cpu-kvm-pseries-2.7.ppc64-latest.args |     4 +-
 ...ault-cpu-kvm-pseries-3.1.ppc64-latest.args |     4 +-
 ...ault-cpu-kvm-pseries-4.2.ppc64-latest.args |     4 +-
 ...ault-cpu-tcg-pseries-2.7.ppc64-latest.args |     4 +-
 ...ault-cpu-tcg-pseries-3.1.ppc64-latest.args |     4 +-
 ...ault-cpu-tcg-pseries-4.2.ppc64-latest.args |     4 +-
 .../ppc64-pseries-graphics.ppc64-latest.args  |     4 +-
 .../ppc64-pseries-headless.ppc64-latest.args  |     4 +-
 .../ppc64-tpmproxy-single.ppc64-latest.args   |     4 +-
 .../ppc64-tpmproxy-with-tpm.ppc64-latest.args |     4 +-
 .../tpm-emulator-spapr.ppc64-latest.args      |     4 +-
 31 files changed, 77619 insertions(+), 22 deletions(-)
 create mode 100644 tests/domaincapsdata/qemu_5.2.0-virt.aarch64.xml
 create mode 100644 tests/domaincapsdata/qemu_5.2.0.aarch64.xml
 create mode 100644 tests/domaincapsdata/qemu_5.2.0.ppc64.xml
 create mode 100644 tests/qemucapabilitiesdata/caps_5.2.0.aarch64.replies
 create mode 100644 tests/qemucapabilitiesdata/caps_5.2.0.aarch64.xml
 create mode 100644 tests/qemucapabilitiesdata/caps_5.2.0.ppc64.replies
 create mode 100644 tests/qemucapabilitiesdata/caps_5.2.0.ppc64.xml
 create mode 100644 tests/qemucapabilitiesdata/caps_5.2.0.riscv64.replies
 create mode 100644 tests/qemucapabilitiesdata/caps_5.2.0.riscv64.xml

-- 
2.26.2

Re: [libvirt PATCH 0/3] tests: Add capabilities for QEMU 5.2
Posted by Andrea Bolognani 3 years, 4 months ago
On Thu, 2020-12-10 at 16:07 +0100, Andrea Bolognani wrote:
> As usual, this is an abridged version of the changes.
> 
> For the full version, run
> 
>   $ git fetch https://gitlab.com/abologna/libvirt.git caps-5.2
> 
> or browse
> 
>   https://gitlab.com/abologna/libvirt/-/commits/caps-5.2
> 
> Andrea Bolognani (3):
>   tests: Add capabilities for QEMU 5.2 on aarch64
>   tests: Add capabilities for QEMU 5.2 on ppc64
>   tests: Add capabilities for QEMU 5.2 on riscv64

Thomas and Cornelia,

you might notice there's an architecture missing from this list O:-)

Any chance either of you can generate the .replies file on s390x? I
have tried doing so myself, but ran into several issues; after
working around them one by one, I eventually realized that the
machine I was using is not KVM-capable and thus the resulting file
would be close to useless. The idea of locating an s390x machine that
doesn't suffer from that limitation and repeating the entire process
from scratch is obviously not sounding very appealing right now!

Assuming you have access to KVM-capable hardware that is running a
recent OS, the process of generating these files is relatively
straightforward:

  * build QEMU from git (v5.2.0 tag)

  * build libvirt from git (master branch)

  * from inside libvirt's build directory, run

      $ ./tests/qemucapsprobe \
        ~/path/to/your/qemu-system-s390x \
        >../tests/qemucapabilitiesdata/caps_5.2.0.s390x.replies

  * after the .replies file has been generated, it's just a matter
    of running

      $ VIR_TEST_REGENERATE_OUTPUT=1 meson test

    a few times, let's say 3-5, until it passes. If it still fails
    after 5 iterations, then there's some issue that we need to
    look into, but I don't expect that will be the case

I'd really appreciate if either one of you could go through this
process and post the resulting patch! Note that, since the diff is
going to be massive, it's standard practice for this kind of update
to only send a heavily snipped version to the mailing list, and push
the full version to some publicly-accessible repository.

Thanks in advance :)

-- 
Andrea Bolognani / Red Hat / Virtualization

Re: [libvirt PATCH 0/3] tests: Add capabilities for QEMU 5.2
Posted by Michal Privoznik 3 years, 4 months ago
On 12/10/20 4:07 PM, Andrea Bolognani wrote:
> As usual, this is an abridged version of the changes.
> 
> For the full version, run
> 
>    $ git fetch https://gitlab.com/abologna/libvirt.git caps-5.2
> 
> or browse
> 
>    https://gitlab.com/abologna/libvirt/-/commits/caps-5.2
> 
> Andrea Bolognani (3):
>    tests: Add capabilities for QEMU 5.2 on aarch64
>    tests: Add capabilities for QEMU 5.2 on ppc64
>    tests: Add capabilities for QEMU 5.2 on riscv64
> 
>   .../qemu_5.2.0-virt.aarch64.xml               |   161 +
>   tests/domaincapsdata/qemu_5.2.0.aarch64.xml   |   155 +
>   tests/domaincapsdata/qemu_5.2.0.ppc64.xml     |   120 +
>   .../caps_5.2.0.aarch64.replies                | 25361 ++++++++++++++
>   .../caps_5.2.0.aarch64.xml                    |   509 +
>   .../caps_5.2.0.ppc64.replies                  | 28789 ++++++++++++++++
>   .../qemucapabilitiesdata/caps_5.2.0.ppc64.xml |  1169 +
>   .../caps_5.2.0.riscv64.replies                | 21075 +++++++++++
>   .../caps_5.2.0.riscv64.xml                    |   214 +
>   ...fault-cpu-kvm-virt-4.2.aarch64-latest.args |     4 +-
>   ...fault-cpu-tcg-virt-4.2.aarch64-latest.args |     4 +-
>   .../aarch64-features-sve.aarch64-latest.args  |     4 +-
>   ...arch64-os-firmware-efi.aarch64-latest.args |     4 +-
>   .../aarch64-virt-graphics.aarch64-latest.args |     4 +-
>   .../aarch64-virt-headless.aarch64-latest.args |     4 +-
>   .../clock-timer-armvtimer.aarch64-latest.args |     4 +-
>   ...ult-video-type-aarch64.aarch64-latest.args |     4 +-
>   ...default-video-type-ppc64.ppc64-latest.args |     4 +-
>   .../disk-arm-virtio-sd.aarch64-latest.args    |     4 +-
>   .../iommu-smmuv3.aarch64-latest.args          |     4 +-
>   ...ault-cpu-kvm-pseries-2.7.ppc64-latest.args |     4 +-
>   ...ault-cpu-kvm-pseries-3.1.ppc64-latest.args |     4 +-
>   ...ault-cpu-kvm-pseries-4.2.ppc64-latest.args |     4 +-
>   ...ault-cpu-tcg-pseries-2.7.ppc64-latest.args |     4 +-
>   ...ault-cpu-tcg-pseries-3.1.ppc64-latest.args |     4 +-
>   ...ault-cpu-tcg-pseries-4.2.ppc64-latest.args |     4 +-
>   .../ppc64-pseries-graphics.ppc64-latest.args  |     4 +-
>   .../ppc64-pseries-headless.ppc64-latest.args  |     4 +-
>   .../ppc64-tpmproxy-single.ppc64-latest.args   |     4 +-
>   .../ppc64-tpmproxy-with-tpm.ppc64-latest.args |     4 +-
>   .../tpm-emulator-spapr.ppc64-latest.args      |     4 +-
>   31 files changed, 77619 insertions(+), 22 deletions(-)
>   create mode 100644 tests/domaincapsdata/qemu_5.2.0-virt.aarch64.xml
>   create mode 100644 tests/domaincapsdata/qemu_5.2.0.aarch64.xml
>   create mode 100644 tests/domaincapsdata/qemu_5.2.0.ppc64.xml
>   create mode 100644 tests/qemucapabilitiesdata/caps_5.2.0.aarch64.replies
>   create mode 100644 tests/qemucapabilitiesdata/caps_5.2.0.aarch64.xml
>   create mode 100644 tests/qemucapabilitiesdata/caps_5.2.0.ppc64.replies
>   create mode 100644 tests/qemucapabilitiesdata/caps_5.2.0.ppc64.xml
>   create mode 100644 tests/qemucapabilitiesdata/caps_5.2.0.riscv64.replies
>   create mode 100644 tests/qemucapabilitiesdata/caps_5.2.0.riscv64.xml
> 

Reviewed-by: Michal Privoznik <mprivozn@redhat.com>

Michal