testing and misc (docker, docs, ci scripts, gitlab, avocado, Kconfig)
The following changes since commit 568992e3440f11897e209bf676aa5b93251385fa:
Merge tag 'pull-qapi-2023-05-09-v2' of https://repo.or.cz/qemu/armbru into staging (2023-05-10 13:11:29 +0100)
are available in the Git repository at:
https://gitlab.com/stsquad/qemu.git tags/pull-testing-updates-100523-1
for you to fetch changes up to b9353acfd7ae1fc59a64b9aea34bd77a415751d1:
hw/arm: Select XLNX_USB_SUBSYS for xlnx-zcu102 machine (2023-05-10 16:02:58 +0100)
----------------------------------------------------------------
Testing updates:
- fix up xtensa docker container base to current Debian
- document breakpoint and watchpoint support
- clean up the ansible scripts for Ubuntu 22.04
- add a minimal device profile
- drop https on mipsdistros URL
- fix Kconfig bug for XLNX_VERSAL
----------------------------------------------------------------
Alex Bennée (7):
tests/docker: bump the xtensa base to debian:11-slim
docs: document breakpoint and watchpoint support scripts/ci: add gitlab-runner to kvm group scripts/ci: clean-up the 20.04/22.04 confusion in ansible
gitlab: add ubuntu-22.04-aarch64-without-defaults
gitlab: enable minimal device profile for aarch64 --disable-tcg tests/avocado: use http for mipsdistros.mips.com
Fabiano Rosas (1):
hw/arm: Select XLNX_USB_SUBSYS for xlnx-zcu102 machine
docs/system/gdb.rst | 22 ++++ .../custom-runners/ubuntu-22.04-aarch32.yml | 2 +- .../custom-runners/ubuntu-22.04-aarch64.yml | 28 +++++- hw/arm/Kconfig | 1 + hw/usb/Kconfig | 1 - scripts/ci/setup/build-environment.yml | 111 ++++++++++++++------- scripts/ci/setup/gitlab-runner.yml | 1 + tests/avocado/replay_kernel.py | 6 +- .../docker/dockerfiles/debian-xtensa-cross.docker | 2 +- 9 files changed, 131 insertions(+), 43 deletions(-)
Signature · 1 line
2.39.2
[PULL 8/8] hw/arm: Select XLNX_USB_SUBSYS for xlnx-zcu102 machine
From: Fabiano Rosas <[email protected]>
This machine hardcodes initialization of the USB device, so select the corresponding Kconfig. It is not enough to have it as "default y if XLNX_VERSAL" at usb/Kconfig because building --without-default-devices disables the default selection resulting in:
$ ./qemu-system-aarch64 -M xlnx-zcu102 qemu-system-aarch64: missing object type 'usb_dwc3' Aborted (core dumped)
Message-Id: <[email protected]>
Message-Id: <[email protected]>
hw/arm/Kconfig +1 -0
@@ -436,6 +436,7 @@ config XLNX_VERSAL select OR_IRQ select XLNX_BBRAM select XLNX_EFUSE_VERSAL + select XLNX_USB_SUBSYS config NPCM7XX bool
hw/usb/Kconfig +0 -1
@@ -136,5 +136,4 @@ config USB_DWC3 config XLNX_USB_SUBSYS bool - default y if XLNX_VERSAL select USB_DWC3
Signature · 1 line
2.39.2
[PULL 2/8] docs: document breakpoint and watchpoint support
In reply to Alex BennéeThis varies by accelerator. Also mention the modern bear trap that is ASLR.
Message-Id: <[email protected]>
docs/system/gdb.rst +22 -0
@@ -46,6 +46,28 @@ Here are some useful tips in order to use gdb on system code: 3. Use ``set architecture i8086`` to dump 16 bit code. Then use ``x/10i $cs*16+$eip`` to dump the code at the PC position. +Breakpoint and Watchpoint support +================================= + +While GDB can always fall back to inserting breakpoints into memory +(if writable) other features are very much dependent on support of the +accelerator. For TCG system emulation we advertise an infinite number +of hardware assisted breakpoints and watchpoints. For other +accelerators it will depend on if support has been added (see +supports_guest_debug and related hooks in AccelOpsClass). + +As TCG cannot track all memory accesses in user-mode there is no +support for watchpoints. + +Relocating code +--------------- + +On modern kernels confusion can be caused by code being relocated by +features such as address space layout randomisation. To avoid +confusion when debugging such things you either need to update gdb's +view of where things are in memory or perhaps more trivially disable +ASLR when booting the system. + Debugging multicore machines ============================
Signature · 1 line
2.39.2
[PULL 3/8] scripts/ci: add gitlab-runner to kvm group
In reply to Alex BennéeOne of the main reasons to have custom runners it so we can run KVM tests. Enable the "kvm" additional group so we can access the feature on the kernel.
Message-Id: <[email protected]>
scripts/ci/setup/gitlab-runner.yml +1 -0
@@ -26,6 +26,7 @@ user: user: gitlab-runner group: gitlab-runner + groups: kvm comment: GitLab Runner home: /home/gitlab-runner shell: /bin/bash
Signature · 1 line
2.39.2
[PULL 1/8] tests/docker: bump the xtensa base to debian:11-slim
In reply to Alex BennéeStretch is going out of support so things like security updates will fail. As the toolchain itself is binary it hopefully won't mind the underlying OS being updated.
Message-Id: <[email protected]>
tests/docker/dockerfiles/debian-xtensa-cross.docker +1 -1
@@ -5,7 +5,7 @@ # using a prebuilt toolchains for Xtensa cores from: # https://github.com/foss-xtensa/toolchain/releases # -FROM docker.io/library/debian:stretch-slim +FROM docker.io/library/debian:11-slim RUN apt-get update && \ DEBIAN_FRONTEND=noninteractive apt install -yy eatmydata && \
Signature · 1 line
2.39.2
[PULL 6/8] gitlab: enable minimal device profile for aarch64 --disable-tcg
In reply to Alex BennéeAs this is likely the most common configuration people will want once the --disable-tcg patches land.
Message-Id: <[email protected]>
.gitlab-ci.d/custom-runners/ubuntu-22.04-aarch64.yml +1 -1
@@ -145,7 +145,7 @@ ubuntu-22.04-aarch64-notcg: script: - mkdir build - cd build - - ../configure --disable-tcg + - ../configure --disable-tcg --with-devices-aarch64=minimal || { cat config.log meson-logs/meson-log.txt; exit 1; } - make --output-sync -j`nproc --ignore=40` - make --output-sync -j`nproc --ignore=40` check
Signature · 1 line
2.39.2
[PULL 5/8] gitlab: add ubuntu-22.04-aarch64-without-defaults
In reply to Alex BennéeThis does a very minimal build without default devices or features. I chose the aarch64 runner as it doesn't count towards CI minutes and is a fairly under-utilised builder.
Message-Id: <[email protected]>
.gitlab-ci.d/custom-runners/ubuntu-22.04-aarch64.yml +22 -0
@@ -45,6 +45,28 @@ ubuntu-22.04-aarch64-all: - make --output-sync -j`nproc --ignore=40` - make --output-sync -j`nproc --ignore=40` check +ubuntu-22.04-aarch64-without-defaults: + extends: .custom_runner_template + needs: [] + stage: build + tags: + - ubuntu_22.04 + - aarch64 + rules: + - if: '$CI_PROJECT_NAMESPACE == "qemu-project" && $CI_COMMIT_BRANCH =~ /^staging/' + when: manual + allow_failure: true + - if: "$AARCH64_RUNNER_AVAILABLE" + when: manual + allow_failure: true + script: + - mkdir build + - cd build + - ../configure --disable-user --without-default-devices --without-default-features + || { cat config.log meson-logs/meson-log.txt; exit 1; } + - make --output-sync -j`nproc --ignore=40` + - make --output-sync -j`nproc --ignore=40` check + ubuntu-22.04-aarch64-alldbg: extends: .custom_runner_template needs: []
Signature · 1 line
2.39.2
[PULL 4/8] scripts/ci: clean-up the 20.04/22.04 confusion in ansible
In reply to Alex BennéeWe have a bunch of references to 20.04 (which s390x is still on) although we are basically building on 22.04 now. Clean up the textual references and use lcitool to generate the full package list to be consistent.
We can drop "Install packages to build QEMU on Ubuntu on non-s390x" as when we upgrade the s390x builder to 22.04 it won't need this workaround.
Message-Id: <[email protected]>
.gitlab-ci.d/custom-runners/ubuntu-22.04-aarch32.yml +1 -1
@@ -1,6 +1,6 @@ # All ubuntu-22.04 jobs should run successfully in an environment # setup by the scripts/ci/setup/qemu/build-environment.yml task -# "Install basic packages to build QEMU on Ubuntu 20.04" +# "Install basic packages to build QEMU on Ubuntu 22.04" ubuntu-22.04-aarch32-all: extends: .custom_runner_template
.gitlab-ci.d/custom-runners/ubuntu-22.04-aarch64.yml +2 -2
@@ -1,6 +1,6 @@ -# All ubuntu-20.04 jobs should run successfully in an environment +# All ubuntu-22.04 jobs should run successfully in an environment # setup by the scripts/ci/setup/qemu/build-environment.yml task -# "Install basic packages to build QEMU on Ubuntu 20.04" +# "Install basic packages to build QEMU on Ubuntu 22.04" ubuntu-22.04-aarch64-all-linux-static: extends: .custom_runner_template
scripts/ci/setup/build-environment.yml +77 -34
178 lines not on this page · raw message
Signature · 1 line
2.39.2
[PULL 7/8] tests/avocado: use http for mipsdistros.mips.com
In reply to Alex BennéeAs the cached assets have fallen out of our cache new attempts to fetch these binaries fail hard due to certificate expiry. It's hard to find a contact email for the domain as the root page of mipsdistros throws up some random XML. I suspect Amazon are merely the hosts.
The checksums should protect us from any man-in-the-middle type attacks.
Message-Id: <[email protected]>
tests/avocado/replay_kernel.py +3 -3
@@ -493,7 +493,7 @@ def test_mips_malta32el_nanomips_4k(self): :avocado: tags=endian:little :avocado: tags=cpu:I7200 """ - kernel_url = ('https://mipsdistros.mips.com/LinuxDistro/nanomips/' + kernel_url = ('http://mipsdistros.mips.com/LinuxDistro/nanomips/' 'kernels/v4.15.18-432-gb2eb9a8b07a1-20180627102142/' 'generic_nano32r6el_page4k.xz') kernel_hash = '477456aafd2a0f1ddc9482727f20fe9575565dd6'
@@ -507,7 +507,7 @@ def test_mips_malta32el_nanomips_16k_up(self): :avocado: tags=endian:little :avocado: tags=cpu:I7200 """ - kernel_url = ('https://mipsdistros.mips.com/LinuxDistro/nanomips/' + kernel_url = ('http://mipsdistros.mips.com/LinuxDistro/nanomips/' 'kernels/v4.15.18-432-gb2eb9a8b07a1-20180627102142/' 'generic_nano32r6el_page16k_up.xz') kernel_hash = 'e882868f944c71c816e832e2303b7874d044a7bc'
@@ -521,7 +521,7 @@ def test_mips_malta32el_nanomips_64k_dbg(self): :avocado: tags=endian:little :avocado: tags=cpu:I7200 """ - kernel_url = ('https://mipsdistros.mips.com/LinuxDistro/nanomips/' + kernel_url = ('http://mipsdistros.mips.com/LinuxDistro/nanomips/' 'kernels/v4.15.18-432-gb2eb9a8b07a1-20180627102142/' 'generic_nano32r6el_page64k_dbg.xz') kernel_hash = '18d1c68f2e23429e266ca39ba5349ccd0aeb7180'
Signature · 1 line
2.39.2
Richard Henderson
AppliedQuoted 15 lines · Alex Bennée
The following changes since commit
568992e3440f11897e209bf676aa5b93251385fa:Merge tag 'pull-qapi-2023-05-09-v2' of https://repo.or.cz/qemu/armbru into staging (2023-05-10 13:11:29 +0100)are available in the Git repository at:
https://gitlab.com/stsquad/qemu.git tags/pull-testing-updates-100523-1for you to fetch changes up to
b9353acfd7ae1fc59a64b9aea34bd77a415751d1:hw/arm: Select XLNX_USB_SUBSYS for xlnx-zcu102 machine (2023-05-10 16:02:58 +0100)----------------------------------------------------------------
Testing updates:
Quoted 6 lines
- fix up xtensa docker container base to current Debian
- document breakpoint and watchpoint support
- clean up the ansible scripts for Ubuntu 22.04
- add a minimal device profile
- drop https on mipsdistros URL
- fixKconfigbug forXLNX_VERSAL
Applied, thanks. Please update https://wiki.qemu.org/ChangeLog/8.1 as appropriate.
r~