qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [qemu/qemu] efe84f: qtest/libqos: add a function to initi


From: Richard Henderson
Subject: [Qemu-commits] [qemu/qemu] efe84f: qtest/libqos: add a function to initialize seconda...
Date: Wed, 15 Dec 2021 09:14:46 -0800

  Branch: refs/heads/master
  Home:   https://github.com/qemu/qemu
  Commit: efe84f03ea88db49ae9180a9ffe4634349333c4e
      
https://github.com/qemu/qemu/commit/efe84f03ea88db49ae9180a9ffe4634349333c4e
  Author: Laurent Vivier <lvivier@redhat.com>
  Date:   2021-12-15 (Wed, 15 Dec 2021)

  Changed paths:
    M include/hw/pci/pci_bridge.h
    M tests/qtest/libqos/pci.c
    M tests/qtest/libqos/pci.h

  Log Message:
  -----------
  qtest/libqos: add a function to initialize secondary PCI buses

Scan the PCI devices to find bridge and set PCI_SECONDARY_BUS and
PCI_SUBORDINATE_BUS (algorithm from seabios)

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Acked-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20211208130350.10178-2-lvivier@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>


  Commit: e32b96b559cefb8cbb7038e913b94567e1a18045
      
https://github.com/qemu/qemu/commit/e32b96b559cefb8cbb7038e913b94567e1a18045
  Author: Laurent Vivier <lvivier@redhat.com>
  Date:   2021-12-15 (Wed, 15 Dec 2021)

  Changed paths:
    M tests/qtest/meson.build
    A tests/qtest/virtio-net-failover.c

  Log Message:
  -----------
  tests/qtest: add some tests for virtio-net failover

Add test cases to test several error cases that must be
generated by invalid failover configuration.

Add a combination of coldplug and hotplug test cases to be
sure the primary is correctly managed according the
presence or not of the STANDBY feature.

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Message-Id: <20211208130350.10178-3-lvivier@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>


  Commit: 1e2077e22332c4d2867043bbea2337d331106bfd
      
https://github.com/qemu/qemu/commit/1e2077e22332c4d2867043bbea2337d331106bfd
  Author: Laurent Vivier <lvivier@redhat.com>
  Date:   2021-12-15 (Wed, 15 Dec 2021)

  Changed paths:
    M tests/qtest/virtio-net-failover.c

  Log Message:
  -----------
  tests/libqtest: add some virtio-net failover migration cancelling tests

Add some tests to check the state of the machine if the migration
is cancelled while we are using virtio-net failover.

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Acked-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20211208130350.10178-4-lvivier@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>


  Commit: e1e3d3211815c407cacb845fc0f6c2c328b2e684
      
https://github.com/qemu/qemu/commit/e1e3d3211815c407cacb845fc0f6c2c328b2e684
  Author: Laurent Vivier <lvivier@redhat.com>
  Date:   2021-12-15 (Wed, 15 Dec 2021)

  Changed paths:
    M tests/qtest/virtio-net-failover.c

  Log Message:
  -----------
  tests/libqtest: add a migration test with two couples of failover devices

Signed-off-by: Laurent Vivier <lvivier@redhat.com>
Acked-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20211208130350.10178-5-lvivier@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>


  Commit: a9697d0947798ec9cc8387308e1d353123639ec3
      
https://github.com/qemu/qemu/commit/a9697d0947798ec9cc8387308e1d353123639ec3
  Author: Thomas Huth <thuth@redhat.com>
  Date:   2021-12-15 (Wed, 15 Dec 2021)

  Changed paths:
    M tests/qtest/meson.build

  Log Message:
  -----------
  tests/qtest: Run the PPC 32-bit tests with the 64-bit target binary, too

The ppc64 target is a superset of the 32-bit target, so we should
include the tests here, too. This used to be done in the past already,
but it got lost during the conversion to meson.

Fixes: a2ce7dbd91 ("meson: convert tests/qtest to meson")
Message-Id: <20211201104347.51922-2-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>


  Commit: bf22f15114b2a1d5eefbcbc18f939d5006d77f72
      
https://github.com/qemu/qemu/commit/bf22f15114b2a1d5eefbcbc18f939d5006d77f72
  Author: Thomas Huth <thuth@redhat.com>
  Date:   2021-12-15 (Wed, 15 Dec 2021)

  Changed paths:
    M tests/qtest/meson.build

  Log Message:
  -----------
  tests/qtest: Fence the tests that need xlnx-zcu102 with CONFIG_XLNX_ZYNQMP_ARM

The 'xlnx-can-test' and the 'fuzz-xlnx-dp-test' need the "xlnx-zcu102"
machine and thus should only be built and run if CONFIG_XLNX_ZYNQMP_ARM
is enabled.

Message-Id: <20211201104347.51922-3-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>


  Commit: 5516a3b592def4de7fa78153912470f160814e5a
      
https://github.com/qemu/qemu/commit/5516a3b592def4de7fa78153912470f160814e5a
  Author: Thomas Huth <thuth@redhat.com>
  Date:   2021-12-15 (Wed, 15 Dec 2021)

  Changed paths:
    M tests/qtest/libqtest.c

  Log Message:
  -----------
  tests/qtest: Add a function that gets a list with available machine types

For the upcoming patches, we will need a way to gets a list with all
available machine types. Refactor the qtest_cb_for_every_machine()
to split the related code out into a separate new function, and
gather the aliases of the various machine types, too.

Message-Id: <20211201104347.51922-4-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>


  Commit: 719051ca3fd0ee765d8a80670df1a0292aa566f0
      
https://github.com/qemu/qemu/commit/719051ca3fd0ee765d8a80670df1a0292aa566f0
  Author: Thomas Huth <thuth@redhat.com>
  Date:   2021-12-15 (Wed, 15 Dec 2021)

  Changed paths:
    M tests/qtest/boot-serial-test.c
    M tests/qtest/cdrom-test.c
    M tests/qtest/libqos/libqtest.h
    M tests/qtest/libqtest.c
    M tests/qtest/prom-env-test.c

  Log Message:
  -----------
  tests/qtest: Add a function to check whether a machine is available

It is nowadays possible to build QEMU with a reduced set of machines
in each binary. However, the qtests still hard-code the expected
machines and fail if the binary does not feature the required machine.
Let's get a little bit more flexible here: Add a function that can be
used to query whether a certain machine is available or not, and use
it in some tests as an example (more work has to be done in other
tests which will follow later).

Message-Id: <20211201104347.51922-5-thuth@redhat.com>
Acked-by: John Snow <jsnow@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>


  Commit: e6a52b3651a3b2be41ee3309bc05f9b1e2cf8b90
      
https://github.com/qemu/qemu/commit/e6a52b3651a3b2be41ee3309bc05f9b1e2cf8b90
  Author: Thomas Huth <thuth@redhat.com>
  Date:   2021-12-15 (Wed, 15 Dec 2021)

  Changed paths:
    M configure
    M meson.build
    M meson_options.txt
    M scripts/meson-buildoptions.sh

  Log Message:
  -----------
  Move the libssh setup from configure to meson.build

It's easier to do this in meson.build now.

Message-Id: <20211209144801.148388-1-thuth@redhat.com>
Acked-by: Richard W.M. Jones <rjones@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>


  Commit: f462be4c062959b6c5bf78df235c16b6c09792ab
      
https://github.com/qemu/qemu/commit/f462be4c062959b6c5bf78df235c16b6c09792ab
  Author: Thomas Huth <thuth@redhat.com>
  Date:   2021-12-15 (Wed, 15 Dec 2021)

  Changed paths:
    M .gitlab-ci.d/buildtest.yml

  Log Message:
  -----------
  gitlab-ci.d/buildtest: Add jobs that run the device-crash-test

The device-crash-test script has been quite neglected in the past,
so that it bit-rot quite often. Let's add CI jobs that run this
script for at least some targets, so that this script does not
regress that easily anymore.

Message-Id: <20211126162724.1162049-1-thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>


  Commit: f11b0a4892ae22b8729a75b2232073fb4090ff28
      
https://github.com/qemu/qemu/commit/f11b0a4892ae22b8729a75b2232073fb4090ff28
  Author: Thomas Huth <thuth@redhat.com>
  Date:   2021-12-15 (Wed, 15 Dec 2021)

  Changed paths:
    M .gitlab-ci.d/cirrus.yml
    A .gitlab-ci.d/cirrus/kvm-build.yml

  Log Message:
  -----------
  gitlab-ci: Add cirrus-ci based tests for NetBSD and OpenBSD

Cirrus-CI provides KVM in their Linux containers, so we can also run
our VM-based NetBSD and OpenBSD build jobs there.
Since the VM installation might take a while, we only run the "help"
target on the first invocation to avoid timeouts, and then only check
the build during the next run, once the base image has been cached.
For the the build tests, we also only use very a limited set of target
CPUs since compiling in these VMs is not very fast (especially the
build on OpenBSD seems to be incredibly slow).

The jobs are marked as "manual" only, since this double-indirect setup
(with the cirrus-run script and VMs in the Cirrus-CI containers) might
fail more often than the other jobs, and since we can trigger a limited
amount of Cirrus-CI jobs at a time anyway (due to the restrictions in
the free tier of Cirrus). Thus these jobs are rather added as convenience
for contributors who would like to run the NetBSD/OpenBSD tests without
the need of downloading and installing the corresponding VM images on
their local machines.

Message-Id: <20211209103124.121942-1-thuth@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>


  Commit: 7b140d23598650326b2bdefbf2b134eacf995d31
      
https://github.com/qemu/qemu/commit/7b140d23598650326b2bdefbf2b134eacf995d31
  Author: Eric Auger <eric.auger@redhat.com>
  Date:   2021-12-15 (Wed, 15 Dec 2021)

  Changed paths:
    M hw/virtio/trace-events
    M hw/virtio/virtio-iommu.c

  Log Message:
  -----------
  virtio-iommu: Remove set_config callback

The spec says "the driver must not write to device configuration
fields". So remove the set_config() callback which anyway did
not do anything.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Message-Id: <20211127072910.1261824-2-eric.auger@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>


  Commit: 3a411b2d9660234c8b6855d1b2861085a4ee5943
      
https://github.com/qemu/qemu/commit/3a411b2d9660234c8b6855d1b2861085a4ee5943
  Author: Eric Auger <eric.auger@redhat.com>
  Date:   2021-12-15 (Wed, 15 Dec 2021)

  Changed paths:
    M hw/virtio/trace-events
    M hw/virtio/virtio-iommu.c

  Log Message:
  -----------
  virtio-iommu: Fix endianness in get_config

Endianess is not properly handled when populating
the returned config. Use the cpu_to_le* primitives
for each separate field. Also, while at it, trace
the domain range start.

Reported-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Message-Id: <20211127072910.1261824-3-eric.auger@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>


  Commit: 6b77ae0531d1a70a87c08408f6c9cd3389439686
      
https://github.com/qemu/qemu/commit/6b77ae0531d1a70a87c08408f6c9cd3389439686
  Author: Eric Auger <eric.auger@redhat.com>
  Date:   2021-12-15 (Wed, 15 Dec 2021)

  Changed paths:
    M hw/virtio/virtio-iommu.c

  Log Message:
  -----------
  virtio-iommu: Fix the domain_range end

in old times the domain range was defined by a domain_bits le32.
This was then converted into a domain_range struct. During the
upgrade the original value of '32' (bits) has been kept while
the end field now is the max value of the domain id (UINT32_MAX).
Fix that and also use UINT64_MAX for the input_range.end.

Reported-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Message-Id: <20211127072910.1261824-4-eric.auger@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>


  Commit: becf88730b86c94137cad20c98ef3b8d24559b9b
      
https://github.com/qemu/qemu/commit/becf88730b86c94137cad20c98ef3b8d24559b9b
  Author: Eric Auger <eric.auger@redhat.com>
  Date:   2021-12-15 (Wed, 15 Dec 2021)

  Changed paths:
    M tests/qtest/libqos/meson.build
    A tests/qtest/libqos/virtio-iommu.c
    A tests/qtest/libqos/virtio-iommu.h
    M tests/qtest/meson.build
    A tests/qtest/virtio-iommu-test.c

  Log Message:
  -----------
  tests: qtest: Add virtio-iommu test

Add the framework to test the virtio-iommu-pci device
and tests exercising the attach/detach, map/unmap API.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Tested-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Reviewed-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Acked-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20211127072910.1261824-5-eric.auger@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>


  Commit: 7876cba8fc0cab9a4c803a30f427d4b20b95a868
      
https://github.com/qemu/qemu/commit/7876cba8fc0cab9a4c803a30f427d4b20b95a868
  Author: Thomas Huth <thuth@redhat.com>
  Date:   2021-12-15 (Wed, 15 Dec 2021)

  Changed paths:
    M .gitlab-ci.d/qemu-project.yml
    A .gitlab-ci.d/windows.yml

  Log Message:
  -----------
  gitlab-ci: Test compilation on Windows with MSYS2

Gitlab also provides runners with Windows, we can use them to
test compilation with MSYS2, in both, 64-bit and 32-bit.

However, it takes quite a long time to set up the VM, so to stay
in a reasonable time frame, we can only compile and check one
target here.

Message-Id: <20211115140623.104116-1-thuth@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Signed-off-by: Thomas Huth <thuth@redhat.com>


  Commit: 5d3da09e44a73b4dadf9f1a94828fef27bcb5588
      
https://github.com/qemu/qemu/commit/5d3da09e44a73b4dadf9f1a94828fef27bcb5588
  Author: Richard Henderson <richard.henderson@linaro.org>
  Date:   2021-12-15 (Wed, 15 Dec 2021)

  Changed paths:
    M .gitlab-ci.d/buildtest.yml
    M .gitlab-ci.d/cirrus.yml
    A .gitlab-ci.d/cirrus/kvm-build.yml
    M .gitlab-ci.d/qemu-project.yml
    A .gitlab-ci.d/windows.yml
    M configure
    M hw/virtio/trace-events
    M hw/virtio/virtio-iommu.c
    M include/hw/pci/pci_bridge.h
    M meson.build
    M meson_options.txt
    M scripts/meson-buildoptions.sh
    M tests/qtest/boot-serial-test.c
    M tests/qtest/cdrom-test.c
    M tests/qtest/libqos/libqtest.h
    M tests/qtest/libqos/meson.build
    M tests/qtest/libqos/pci.c
    M tests/qtest/libqos/pci.h
    A tests/qtest/libqos/virtio-iommu.c
    A tests/qtest/libqos/virtio-iommu.h
    M tests/qtest/libqtest.c
    M tests/qtest/meson.build
    M tests/qtest/prom-env-test.c
    A tests/qtest/virtio-iommu-test.c
    A tests/qtest/virtio-net-failover.c

  Log Message:
  -----------
  Merge tag 'pull-request-2021-12-15' of https://gitlab.com/thuth/qemu into 
staging

* Add virtio-net failover test
* Make qtests a little bit more flexible with regards to reduced configs
* Move libssh setup from configure to meson.build
* Run device-crash-test in CI
* Add jobs for NetBSD and OpenBSD to the CI
* Test compilation with MSYS2 in the gitlab-ci, too
* Add new virtio-iommu test

# gpg: Signature made Tue 14 Dec 2021 11:11:54 PM PST
# gpg:                using RSA key 27B88847EEE0250118F3EAB92ED9D774FE702DB5
# gpg:                issuer "thuth@redhat.com"
# gpg: Good signature from "Thomas Huth <th.huth@gmx.de>" [full]
# gpg:                 aka "Thomas Huth <thuth@redhat.com>" [full]
# gpg:                 aka "Thomas Huth <th.huth@posteo.de>" [unknown]
# gpg:                 aka "Thomas Huth <huth@tuxfamily.org>" [full]

* tag 'pull-request-2021-12-15' of https://gitlab.com/thuth/qemu:
  gitlab-ci: Test compilation on Windows with MSYS2
  tests: qtest: Add virtio-iommu test
  virtio-iommu: Fix the domain_range end
  virtio-iommu: Fix endianness in get_config
  virtio-iommu: Remove set_config callback
  gitlab-ci: Add cirrus-ci based tests for NetBSD and OpenBSD
  gitlab-ci.d/buildtest: Add jobs that run the device-crash-test
  Move the libssh setup from configure to meson.build
  tests/qtest: Add a function to check whether a machine is available
  tests/qtest: Add a function that gets a list with available machine types
  tests/qtest: Fence the tests that need xlnx-zcu102 with CONFIG_XLNX_ZYNQMP_ARM
  tests/qtest: Run the PPC 32-bit tests with the 64-bit target binary, too
  tests/libqtest: add a migration test with two couples of failover devices
  tests/libqtest: add some virtio-net failover migration cancelling tests
  tests/qtest: add some tests for virtio-net failover
  qtest/libqos: add a function to initialize secondary PCI buses

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>


Compare: https://github.com/qemu/qemu/compare/76b56fdfc9fa...5d3da09e44a7



reply via email to

[Prev in Thread] Current Thread [Next in Thread]