Skip to contentSkip to conversation

CI: Refresh ARM Debian testing

PATCH In review Andrew Cooper 2 participants 18 messages May 8 – May 29

lore
Share & tools
lore
#0 lore raw

cover CI: Refresh ARM Debian testing

Long overdue. Clean up the ARM Debian containers, conforming to the new style and naming schemes, and purge the final *-export jobs.

I have already deployed the containers as they're new names and don't collide. I have also checked that the series produces a green pipeline on every commit.

Andrew Cooper (3):
CI: Adjust test needs[] to ensure binaries/ is non-root
CI: Add a Debian 13 (Trixie) arm64 container
CI: Switch qemu-arm* jobs to using the distro provided QEMU

Javi Merino (2):
CI: Refresh the Debian 12 arm32 cross compile container
CI: Refresh the Debian 12 arm64 container

 .../build/debian/12-arm64v8-arm32.dockerfile  | 32 ++++++++
 automation/build/debian/12-arm64v8.dockerfile | 69 +++++++++++++++++
 automation/build/debian/13-arm64v8.dockerfile | 71 +++++++++++++++++
 .../bookworm-arm64v8-arm32-gcc.dockerfile     | 24 ------
 .../build/debian/bookworm-arm64v8.dockerfile  | 55 -------------
 automation/gitlab-ci/build.yaml               | 65 ++++------------
 automation/gitlab-ci/test.yaml                | 30 ++++----
 automation/scripts/containerize               |  5 +-
 automation/scripts/include/xtf-arm64          |  7 +-
 automation/scripts/qemu-smoke-dom0-arm32.sh   |  6 +-
 automation/scripts/qemu-smoke-dom0-arm64.sh   |  6 +-
 .../scripts/qemu-smoke-dom0less-arm32.sh      |  6 +-
 .../scripts/qemu-smoke-dom0less-arm64.sh      |  6 +-
 .../6.0.0-arm64v8.dockerfile                  | 77 -------------------
 14 files changed, 218 insertions(+), 241 deletions(-)
 create mode 100644 automation/build/debian/12-arm64v8-arm32.dockerfile
 create mode 100644 automation/build/debian/12-arm64v8.dockerfile
 create mode 100644 automation/build/debian/13-arm64v8.dockerfile
 delete mode 100644 automation/build/debian/bookworm-arm64v8-arm32-gcc.dockerfile
 delete mode 100644 automation/build/debian/bookworm-arm64v8.dockerfile
 delete mode 100644 automation/tests-artifacts/qemu-system-aarch64/6.0.0-arm64v8.dockerfile
Signature · 1 line
2.39.5
#1 lore raw

PATCH 1/5 CI: Adjust test needs[] to ensure binaries/ is non-root

The binaries/ directory is a composition from the artefacts, and also used as a working directory for most of the tests. If the very first artefact is from a root container, then the test must also be a root container to use it as a working directory.

For arm64, the existing linux-arm64 artefact suffices. For arm32, pull in the microcode-x86 artefact as it's the smallest available. This bodge can be removed when all build containers have become non-root.

For the qemu-xtf-dom0less-arm64-*-xen-version jobs, use *arm64-test-needs ahead of alpine-3.18-gcc-* (as it's a root container), and to deduplicate the *-export dependency.

This will allow us to change containers to being non-root one at a time, rather than all in one go.

No functional change.

---
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>

We should also stop using binaries/ as a working directory for the tests, but that gets very complicated very quickly and I don't have time to do it at this juncture.

---
 automation/gitlab-ci/test.yaml | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
automation/gitlab-ci/test.yaml +8 -2
index 8770c523e228..517af1732437 100644
@@ -15,6 +15,12 @@
   - qemu-system-aarch64-6.0.0-arm64-export
 
 .arm32-test-needs: &arm32-test-needs
+  # Bodge to ensure binaries/ is non-root.  Can be any artefact which comes
+  # from a non-root container, and microcode-x86 is the smallest.  Remove when
+  # all build containers have become non-root.
+  - project: $ARTIFACTS_REPO
+    job: microcode-x86
+    ref: $ARTIFACTS_BRANCH
   - qemu-system-aarch64-6.0.0-arm32-export
 
 .x86-64-test-needs: &x86-64-test-needs
@@ -569,16 +575,16 @@ qemu-xtf-dom0less-arm64-gcc-hyp-xen-version:
   script:
     - ./automation/scripts/qemu-xtf.sh arm64 mmu64le hyp-xen-version 2>&1 | tee ${LOGFILE}
   needs:
+    - *arm64-test-needs
     - alpine-3.18-gcc-arm64
-    - qemu-system-aarch64-6.0.0-arm64-export
 
 qemu-xtf-dom0less-arm64-gcc-debug-hyp-xen-version:
   extends: .qemu-arm64
   script:
     - ./automation/scripts/qemu-xtf.sh arm64 mmu64le hyp-xen-version 2>&1 | tee ${LOGFILE}
   needs:
+    - *arm64-test-needs
     - alpine-3.18-gcc-debug-arm64
-    - qemu-system-aarch64-6.0.0-arm64-export
 
 qemu-smoke-dom0-arm32-gcc:
   extends: .qemu-arm32
Signature · 1 line
2.39.5
#2 lore raw

Re: [PATCH 1/5] CI: Adjust test needs[] to ensure binaries/ is non-root

Quoted 37 lines · Andrew Cooper

The binaries/ directory is a composition from the artefacts, and also used as a working directory for most of the tests. If the very first artefact is from a root container, then the test must also be a root container to use it as a working directory.

For arm64, the existing linux-arm64 artefact suffices. For arm32, pull in the microcode-x86 artefact as it's the smallest available. This bodge can be removed when all build containers have become non-root.

For the qemu-xtf-dom0less-arm64-*-xen-version jobs, use *arm64-test-needs ahead of alpine-3.18-gcc-* (as it's a root container), and to deduplicate the *-export dependency.

This will allow us to change containers to being non-root one at a time, rather than all in one go.

No functional change.

---
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>

We should also stop using binaries/ as a working directory for the tests, but that gets very complicated very quickly and I don't have time to do it at this juncture.

---
 automation/gitlab-ci/test.yaml | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
automation/gitlab-ci/test.yaml +0 -0
index 8770c523e228..517af1732437 100644

automation/gitlab-ci/test.yaml line 23

Quoted 9 lines
automation/gitlab-ci/test.yaml +6 -0
@@ -15,6 +15,12 @@
   - qemu-system-aarch64-6.0.0-arm64-export
 
 .arm32-test-needs: &arm32-test-needs
+  # Bodge to ensure binaries/ is non-root.  Can be any artefact which comes
+  # from a non-root container, and microcode-x86 is the smallest.  Remove when
+  # all build containers have become non-root.
+  - project: $ARTIFACTS_REPO
+    job: microcode-x86
+    ref: $ARTIFACTS_BRANCH

I don't see it being removed in this series even though the containers are non-root.

automation/gitlab-ci/test.yaml qemu-xtf-dom0less-arm64-gcc-hyp-xen-version: · line 578

Quoted 8 lines
automation/gitlab-ci/test.yaml +1 -0
   - qemu-system-aarch64-6.0.0-arm32-export
 
 .x86-64-test-needs: &x86-64-test-needs
@@ -569,16 +575,16 @@ qemu-xtf-dom0less-arm64-gcc-hyp-xen-version:
   script:
     - ./automation/scripts/qemu-xtf.sh arm64 mmu64le hyp-xen-version 2>&1 | tee ${LOGFILE}
   needs:
+    - *arm64-test-needs

This also pulls in Linux image and rootfs which XTF tests don't need. I think it's much better for a test to list the actual list of its dependencies. Otherwise you are asking user/developer to dig into the yaml.

~Michal

Quoted 14 lines
automation/gitlab-ci/test.yaml +1 -2
     - alpine-3.18-gcc-arm64
-    - qemu-system-aarch64-6.0.0-arm64-export
 
 qemu-xtf-dom0less-arm64-gcc-debug-hyp-xen-version:
   extends: .qemu-arm64
   script:
     - ./automation/scripts/qemu-xtf.sh arm64 mmu64le hyp-xen-version 2>&1 | tee ${LOGFILE}
   needs:
+    - *arm64-test-needs
     - alpine-3.18-gcc-debug-arm64
-    - qemu-system-aarch64-6.0.0-arm64-export
 
 qemu-smoke-dom0-arm32-gcc:
   extends: .qemu-arm32
#3 lore raw

Re: [PATCH 1/5] CI: Adjust test needs[] to ensure binaries/ is non-root

Quoted 41 lines · Michal
Quoted 39 lines · Andrew Cooper

The binaries/ directory is a composition from the artefacts, and also used as a working directory for most of the tests. If the very first artefact is from a root container, then the test must also be a root container to use it as a working directory.

For arm64, the existing linux-arm64 artefact suffices. For arm32, pull in the microcode-x86 artefact as it's the smallest available. This bodge can be removed when all build containers have become non-root.

For the qemu-xtf-dom0less-arm64-*-xen-version jobs, use *arm64-test-needs ahead of alpine-3.18-gcc-* (as it's a root container), and to deduplicate the *-export dependency.

This will allow us to change containers to being non-root one at a time, rather than all in one go.

No functional change.

---
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>

We should also stop using binaries/ as a working directory for the tests, but that gets very complicated very quickly and I don't have time to do it at this juncture.

---
 automation/gitlab-ci/test.yaml | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
automation/gitlab-ci/test.yaml +0 -0
index 8770c523e228..517af1732437 100644
@@ -15,6 +15,12 @@
   - qemu-system-aarch64-6.0.0-arm64-export
 
Quoted 8 lines

automation/gitlab-ci/test.yaml line 23

Quoted 7 lines
automation/gitlab-ci/test.yaml +6 -0
 .arm32-test-needs: &arm32-test-needs
+  # Bodge to ensure binaries/ is non-root.  Can be any artefact which comes
+  # from a non-root container, and microcode-x86 is the smallest.  Remove when
+  # all build containers have become non-root.
+  - project: $ARTIFACTS_REPO
+    job: microcode-x86
+    ref: $ARTIFACTS_BRANCH

I don't see it being removed in this series even though the containers are non-root.

Correct.  The Alpine container still being root is discussed in the commit message, and is why ...

Quoted 9 lines

automation/gitlab-ci/test.yaml qemu-xtf-dom0less-arm64-gcc-hyp-xen-version: · line 578

Quoted 9 lines
automation/gitlab-ci/test.yaml +1 -0
   - qemu-system-aarch64-6.0.0-arm32-export
 
 .x86-64-test-needs: &x86-64-test-needs
@@ -569,16 +575,16 @@ qemu-xtf-dom0less-arm64-gcc-hyp-xen-version:
   script:
     - ./automation/scripts/qemu-xtf.sh arm64 mmu64le hyp-xen-version 2>&1 | tee ${LOGFILE}
   needs:
+    - *arm64-test-needs

... why use here is ahead of ...

Quoted 8 lines

This also pulls in Linux image and rootfs which XTF tests don't need. I think it's much better for a test to list the actual list of its dependencies. Otherwise you are asking user/developer to dig into the yaml.

~Michal

Quoted 2 lines
automation/gitlab-ci/test.yaml +0 -1
     - alpine-3.18-gcc-arm64
-    - qemu-system-aarch64-6.0.0-arm64-export

... the alpine inclusion here.

This can get reverted once the alpine container is split/reworked, but not before.

~Andrew

Reviewed-by
#4 lore raw

Re: [PATCH 1/5] CI: Adjust test needs[] to ensure binaries/ is non-root

Quoted 73 lines · Andrew Cooper
Quoted 41 lines · Michal
Quoted 39 lines · Andrew Cooper

The binaries/ directory is a composition from the artefacts, and also used as a working directory for most of the tests. If the very first artefact is from a root container, then the test must also be a root container to use it as a working directory.

For arm64, the existing linux-arm64 artefact suffices. For arm32, pull in the microcode-x86 artefact as it's the smallest available. This bodge can be removed when all build containers have become non-root.

For the qemu-xtf-dom0less-arm64-*-xen-version jobs, use *arm64-test-needs ahead of alpine-3.18-gcc-* (as it's a root container), and to deduplicate the *-export dependency.

This will allow us to change containers to being non-root one at a time, rather than all in one go.

No functional change.

---
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>

We should also stop using binaries/ as a working directory for the tests, but that gets very complicated very quickly and I don't have time to do it at this juncture.

---
 automation/gitlab-ci/test.yaml | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
automation/gitlab-ci/test.yaml +0 -0
index 8770c523e228..517af1732437 100644
@@ -15,6 +15,12 @@
   - qemu-system-aarch64-6.0.0-arm64-export
 
Quoted 8 lines

automation/gitlab-ci/test.yaml line 23

Quoted 7 lines
automation/gitlab-ci/test.yaml +6 -0
 .arm32-test-needs: &arm32-test-needs
+  # Bodge to ensure binaries/ is non-root.  Can be any artefact which comes
+  # from a non-root container, and microcode-x86 is the smallest.  Remove when
+  # all build containers have become non-root.
+  - project: $ARTIFACTS_REPO
+    job: microcode-x86
+    ref: $ARTIFACTS_BRANCH

I don't see it being removed in this series even though the containers are non-root.

Correct.  The Alpine container still being root is discussed in the commit message, and is why ...

Quoted 9 lines

automation/gitlab-ci/test.yaml qemu-xtf-dom0less-arm64-gcc-hyp-xen-version: · line 578

Quoted 9 lines
automation/gitlab-ci/test.yaml +1 -0
   - qemu-system-aarch64-6.0.0-arm32-export
 
 .x86-64-test-needs: &x86-64-test-needs
@@ -569,16 +575,16 @@ qemu-xtf-dom0less-arm64-gcc-hyp-xen-version:
   script:
     - ./automation/scripts/qemu-xtf.sh arm64 mmu64le hyp-xen-version 2>&1 | tee ${LOGFILE}
   needs:
+    - *arm64-test-needs

... why use here is ahead of ...

Quoted 6 lines

This also pulls in Linux image and rootfs which XTF tests don't need. I think it's much better for a test to list the actual list of its dependencies. Otherwise you are asking user/developer to dig into the yaml.

~Michal

Quoted 7 lines
Quoted 2 lines

automation/gitlab-ci/test.yaml qemu-xtf-dom0less-arm64-gcc-hyp-xen-version: · line 573

Quoted 2 lines
automation/gitlab-ci/test.yaml +0 -1
     - alpine-3.18-gcc-arm64
-    - qemu-system-aarch64-6.0.0-arm64-export

... the alpine inclusion here.

This can get reverted once the alpine container is split/reworked, but not before.

Ok, so once the Alpine container is reworked, we will get back to proper dependencies list. In that case:

~Michal

#5 lore raw

Re: [PATCH 1/5] CI: Adjust test needs[] to ensure binaries/ is non-root

Quoted 71 lines · Michal
Quoted 69 lines · Andrew Cooper
Quoted 40 lines · Michal
Quoted 39 lines · Andrew Cooper

The binaries/ directory is a composition from the artefacts, and also used as a working directory for most of the tests. If the very first artefact is from a root container, then the test must also be a root container to use it as a working directory.

For arm64, the existing linux-arm64 artefact suffices. For arm32, pull in the microcode-x86 artefact as it's the smallest available. This bodge can be removed when all build containers have become non-root.

For the qemu-xtf-dom0less-arm64-*-xen-version jobs, use *arm64-test-needs ahead of alpine-3.18-gcc-* (as it's a root container), and to deduplicate the *-export dependency.

This will allow us to change containers to being non-root one at a time, rather than all in one go.

No functional change.

---
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>

We should also stop using binaries/ as a working directory for the tests, but that gets very complicated very quickly and I don't have time to do it at this juncture.

---
 automation/gitlab-ci/test.yaml | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
automation/gitlab-ci/test.yaml +0 -0
index 8770c523e228..517af1732437 100644
@@ -15,6 +15,12 @@
   - qemu-system-aarch64-6.0.0-arm64-export
 
Quoted 8 lines

automation/gitlab-ci/test.yaml line 23

Quoted 7 lines
automation/gitlab-ci/test.yaml +6 -0
 .arm32-test-needs: &arm32-test-needs
+  # Bodge to ensure binaries/ is non-root.  Can be any artefact which comes
+  # from a non-root container, and microcode-x86 is the smallest.  Remove when
+  # all build containers have become non-root.
+  - project: $ARTIFACTS_REPO
+    job: microcode-x86
+    ref: $ARTIFACTS_BRANCH

I don't see it being removed in this series even though the containers are non-root.

Correct.  The Alpine container still being root is discussed in the commit message, and is why ...

Quoted 8 lines

automation/gitlab-ci/test.yaml qemu-xtf-dom0less-arm64-gcc-hyp-xen-version: · line 578

Quoted 8 lines
automation/gitlab-ci/test.yaml +1 -0
   - qemu-system-aarch64-6.0.0-arm32-export
 
 .x86-64-test-needs: &x86-64-test-needs
@@ -569,16 +575,16 @@ qemu-xtf-dom0less-arm64-gcc-hyp-xen-version:
   script:
     - ./automation/scripts/qemu-xtf.sh arm64 mmu64le hyp-xen-version 2>&1 | tee ${LOGFILE}
   needs:
+    - *arm64-test-needs

... why use here is ahead of ...

Quoted 6 lines

This also pulls in Linux image and rootfs which XTF tests don't need. I think it's much better for a test to list the actual list of its dependencies. Otherwise you are asking user/developer to dig into the yaml.

~Michal

Quoted 8 lines
Quoted 6 lines
Quoted 2 lines

automation/gitlab-ci/test.yaml qemu-xtf-dom0less-arm64-gcc-hyp-xen-version: · line 573

Quoted 2 lines
automation/gitlab-ci/test.yaml +0 -1
     - alpine-3.18-gcc-arm64
-    - qemu-system-aarch64-6.0.0-arm64-export

... the alpine inclusion here.

This can get reverted once the alpine container is split/reworked, but not before.

Ok, so once the Alpine container is reworked, we will get back to proper dependencies list.

Yes.  I hope to do so for 4.22, but the alpine container needs more careful work as it's also used by the QubeOS hardware runner environment.

Quoted 2 lines

In that case:

Thankyou.

~Andrew

#6 lore raw

PATCH 2/5 CI: Refresh the Debian 12 arm32 cross compile container

In reply to Andrew Cooper

From: Javi Merino <[email protected]>

Rework the container to user heredocs for readability, derive from bookworm-slim and use apt-get --no-install-recommends to keep the size down.

Convert it to being a non-root container. Add checkpolicy as FLASK is an available build option for arm32 under Randconfig testing.

Rename the CI jobs to debian-12-arm32-* to follow the naming scheme of all the other CI jobs.

No functional change.

---
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>

---
 .../build/debian/12-arm64v8-arm32.dockerfile  | 32 +++++++++++++++++++
 .../bookworm-arm64v8-arm32-gcc.dockerfile     | 24 --------------
 automation/gitlab-ci/build.yaml               | 24 +++++++-------
 automation/gitlab-ci/test.yaml                | 14 ++++----
 automation/scripts/containerize               |  2 +-
 5 files changed, 52 insertions(+), 44 deletions(-)
 create mode 100644 automation/build/debian/12-arm64v8-arm32.dockerfile
 delete mode 100644 automation/build/debian/bookworm-arm64v8-arm32-gcc.dockerfile
automation/build/debian/12-arm64v8-arm32.dockerfile new file +32 -0
new file mode 100644
index 000000000000..a4d70f1111ed
@@ -0,0 +1,32 @@
+# syntax=docker/dockerfile:1
+FROM --platform=linux/arm64/v8 debian:bookworm-slim
+LABEL maintainer.name="The Xen Project"
+LABEL maintainer.email="[email protected]"
+
+ENV DEBIAN_FRONTEND=noninteractive
+ENV CROSS_COMPILE=/usr/bin/arm-linux-gnueabihf-
+
+RUN <<EOF
+#!/bin/bash
+    set -eu
+
+    useradd --create-home user
+
+    apt-get update
+
+    DEPS=(
+        # Xen
+        bison
+        build-essential
+        checkpolicy
+        flex
+        gcc-arm-linux-gnueabihf
+    )
+
+    apt-get --yes --no-install-recommends install "${DEPS[@]}"
+
+    rm -rf /var/lib/apt/lists*
+EOF
+
+USER user
+WORKDIR /build
automation/build/debian/bookworm-arm64v8-arm32-gcc.dockerfile deleted +0 -24
deleted file mode 100644
index 95b3f0428372..000000000000
@@ -1,24 +0,0 @@
-# syntax=docker/dockerfile:1
-FROM --platform=linux/arm64/v8 debian:bookworm
-LABEL maintainer.name="The Xen Project" \
-      maintainer.email="[email protected]"
-
-ENV DEBIAN_FRONTEND=noninteractive
-ENV USER root
-ENV CROSS_COMPILE /usr/bin/arm-linux-gnueabihf-
-
-RUN mkdir /build
-WORKDIR /build
-
-# build depends
-RUN apt-get update && \
-    apt-get --quiet --yes install \
-        build-essential \
-        flex \
-        bison \
-        git \
-        gcc-arm-linux-gnueabihf \
-        && \
-        apt-get autoremove -y && \
-        apt-get clean && \
-        rm -rf /var/lib/apt/lists* /tmp/* /var/tmp/*
automation/gitlab-ci/build.yaml +12 -12
index f05895729147..d027f26a6d6b 100644
@@ -359,52 +359,52 @@ debian-13-riscv64-gcc-debug:
 
 # Arm32 cross-build
 
-debian-bookworm-gcc-arm32:
+debian-12-arm32-gcc:
   extends: .gcc-arm32-cross-build
   <<: *build-test
   variables:
-    CONTAINER: debian:bookworm-arm64v8-arm32-gcc
+    CONTAINER: debian:12-arm64v8-arm32
     HYPERVISOR_ONLY: y
 
-debian-bookworm-gcc-arm32-debug:
+debian-12-arm32-gcc-debug:
   extends: .gcc-arm32-cross-build-debug
   <<: *build-test
   variables:
-    CONTAINER: debian:bookworm-arm64v8-arm32-gcc
+    CONTAINER: debian:12-arm64v8-arm32
     HYPERVISOR_ONLY: y
 
-debian-bookworm-gcc-arm32-randconfig:
+debian-12-arm32-gcc-randconfig:
   extends: .gcc-arm32-cross-build
   variables:
-    CONTAINER: debian:bookworm-arm64v8-arm32-gcc
+    CONTAINER: debian:12-arm64v8-arm32
     HYPERVISOR_ONLY: y
     RANDCONFIG: y
 
-debian-bookworm-gcc-arm32-debug-staticmem:
+debian-12-arm32-gcc-debug-staticmem:
   extends: .gcc-arm32-cross-build-debug
   <<: *build-test
   variables:
-    CONTAINER: debian:bookworm-arm64v8-arm32-gcc
+    CONTAINER: debian:12-arm64v8-arm32
     HYPERVISOR_ONLY: y
     EXTRA_XEN_CONFIG: |
       CONFIG_EXPERT=y
       CONFIG_UNSUPPORTED=y
       CONFIG_STATIC_MEMORY=y
 
-debian-bookworm-gcc-arm32-debug-earlyprintk:
+debian-12-arm32-gcc-debug-earlyprintk:
   extends: .gcc-arm32-cross-build-debug
   <<: *build-test
   variables:
-    CONTAINER: debian:bookworm-arm64v8-arm32-gcc
+    CONTAINER: debian:12-arm64v8-arm32
     HYPERVISOR_ONLY: y
     EXTRA_XEN_CONFIG: |
       CONFIG_EARLY_UART_CHOICE_PL011=y
       CONFIG_EARLY_UART_BASE_ADDRESS=0x9000000
 
-debian-bookworm-gcc-arm32-debug-mpu:
+debian-12-arm32-gcc-debug-mpu:
   extends: .gcc-arm32-cross-build-debug
   variables:
-    CONTAINER: debian:bookworm-arm64v8-arm32-gcc
+    CONTAINER: debian:12-arm64v8-arm32
     HYPERVISOR_ONLY: y
     EXTRA_XEN_CONFIG: |
       CONFIG_XEN_START_ADDRESS=0x0
automation/gitlab-ci/test.yaml +7 -7
index 517af1732437..e1d6bb505674 100644
@@ -600,7 +600,7 @@ qemu-smoke-dom0less-arm32-gcc:
     - ./automation/scripts/qemu-smoke-dom0less-arm32.sh 2>&1 | tee ${LOGFILE}
   needs:
     - *arm32-test-needs
-    - debian-bookworm-gcc-arm32
+    - debian-12-arm32-gcc
 
 qemu-smoke-dom0less-arm32-gcc-debug:
   extends: .qemu-arm32
@@ -608,7 +608,7 @@ qemu-smoke-dom0less-arm32-gcc-debug:
     - ./automation/scripts/qemu-smoke-dom0less-arm32.sh 2>&1 | tee ${LOGFILE}
   needs:
     - *arm32-test-needs
-    - debian-bookworm-gcc-arm32-debug
+    - debian-12-arm32-gcc-debug
 
 qemu-smoke-dom0less-arm32-gcc-debug-staticmem:
   extends: .qemu-arm32
@@ -616,7 +616,7 @@ qemu-smoke-dom0less-arm32-gcc-debug-staticmem:
     - ./automation/scripts/qemu-smoke-dom0less-arm32.sh static-mem 2>&1 | tee ${LOGFILE}
   needs:
     - *arm32-test-needs
-    - debian-bookworm-gcc-arm32-debug-staticmem
+    - debian-12-arm32-gcc-debug-staticmem
 
 qemu-smoke-dom0less-arm32-gcc-debug-gzip:
   extends: .qemu-arm32
@@ -624,7 +624,7 @@ qemu-smoke-dom0less-arm32-gcc-debug-gzip:
     - ./automation/scripts/qemu-smoke-dom0less-arm32.sh gzip 2>&1 | tee ${LOGFILE}
   needs:
     - *arm32-test-needs
-    - debian-bookworm-gcc-arm32-debug
+    - debian-12-arm32-gcc-debug
 
 qemu-smoke-dom0less-arm32-gcc-without-dom0:
   extends: .qemu-arm32
@@ -632,7 +632,7 @@ qemu-smoke-dom0less-arm32-gcc-without-dom0:
     - ./automation/scripts/qemu-smoke-dom0less-arm32.sh without-dom0 2>&1 | tee ${LOGFILE}
   needs:
     - *arm32-test-needs
-    - debian-bookworm-gcc-arm32
+    - debian-12-arm32-gcc
 
 qemu-smoke-dom0less-arm32-gcc-debug-without-dom0:
   extends: .qemu-arm32
@@ -640,7 +640,7 @@ qemu-smoke-dom0less-arm32-gcc-debug-without-dom0:
     - ./automation/scripts/qemu-smoke-dom0less-arm32.sh without-dom0 2>&1 | tee ${LOGFILE}
   needs:
     - *arm32-test-needs
-    - debian-bookworm-gcc-arm32-debug
+    - debian-12-arm32-gcc-debug
 
 qemu-smoke-dom0less-arm32-gcc-debug-earlyprintk:
   extends: .qemu-arm32
@@ -648,7 +648,7 @@ qemu-smoke-dom0less-arm32-gcc-debug-earlyprintk:
     - ./automation/scripts/qemu-smoke-dom0less-arm32.sh earlyprintk 2>&1 | tee ${LOGFILE}
   needs:
     - *arm32-test-needs
-    - debian-bookworm-gcc-arm32-debug-earlyprintk
+    - debian-12-arm32-gcc-debug-earlyprintk
 
 qemu-alpine-x86_64-gcc:
   extends: .qemu-x86-64
automation/scripts/containerize +1 -1
index ad3e2372703f..ef3b97b65578 100755
@@ -38,7 +38,7 @@ case "_${CONTAINER}" in
     _bookworm|_bookworm-x86_64) CONTAINER="${BASE}/debian:12-x86_64" ;;
     _trixie-x86_64|_) CONTAINER="${BASE}/debian:13-x86_64" ;;
     _bookworm-i386|_bookworm-x86_32) CONTAINER="${BASE}/debian:12-x86_32" ;;
-    _bookworm-arm64v8-arm32-gcc) CONTAINER="${BASE}/debian:bookworm-arm64v8-arm32-gcc" ;;
+    _bookworm-arm64v8-arm32) CONTAINER="${BASE}/debian:12-arm64v8-arm32" ;;
     _bookworm-arm64v8) CONTAINER="${BASE}/debian:bookworm-arm64v8" ;;
     _bookworm-cppcheck) CONTAINER="${BASE}/debian:12-arm64v8-cppcheck" ;;
     _opensuse-leap|_leap) CONTAINER="${BASE}/opensuse:leap-15.6-x86_64" ;;
Signature · 1 line
2.39.5
Reviewed-by on v1 2/5
#7 lore raw

Re: [PATCH 2/5] CI: Refresh the Debian 12 arm32 cross compile container

Quoted 8 lines · Andrew Cooper

From: Javi Merino <[email protected]>

Rework the container to user heredocs for readability, derive from bookworm-slim and use apt-get --no-install-recommends to keep the size down.

Convert it to being a non-root container. Add checkpolicy as FLASK is an available build option for arm32 under Randconfig testing.

Quoted 7 lines

Rename the CI jobs to debian-12-arm32-* to follow the naming scheme of all the other CI jobs.

No functional change.

~Michal

#8 lore raw

PATCH 3/5 CI: Refresh the Debian 12 arm64 container

In reply to Andrew Cooper

From: Javi Merino <[email protected]>

Rework the container to user heredocs for readability, derive from bookworm-slim and use apt-get --no-install-recommends to keep the size down.

Additionally:

* Make it a non-root container.
* Drop libext2fs-dev which is an x86-only dependency.
* Add libncurses5-dev for xentop and zlib1g-dev which was missing from the libxenguest decompressors.
* As there's no ninja, the container can no loger build QEMU so drop libglib2.0-dev and libpixman-1-dev too.
* Swap libyajl-dev for libjson-c-dev given the latters deprecation.

Rename the job to debian-12-arm64-* to follow the naming scheme of all the other CI jobs.

This reduces the size of the debian:12-arm64v8 from 2.25GB down to 1.62GB.

---
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>

Depends on "[PATCH] tools/libxl: Fix libxl_nocpuid.c build with json-c" submitted separately.

---
 automation/build/debian/12-arm64v8.dockerfile | 69 +++++++++++++++++++
 .../build/debian/bookworm-arm64v8.dockerfile  | 55 ---------------
 automation/gitlab-ci/build.yaml               |  8 +--
 automation/gitlab-ci/test.yaml                |  4 +-
 automation/scripts/containerize               |  2 +-
 5 files changed, 76 insertions(+), 62 deletions(-)
 create mode 100644 automation/build/debian/12-arm64v8.dockerfile
 delete mode 100644 automation/build/debian/bookworm-arm64v8.dockerfile
automation/build/debian/12-arm64v8.dockerfile new file +69 -0
new file mode 100644
index 000000000000..c0e08a010f6a
@@ -0,0 +1,69 @@
+# syntax=docker/dockerfile:1
+FROM --platform=linux/arm64/v8 debian:bookworm-slim
+LABEL maintainer.name="The Xen Project"
+LABEL maintainer.email="[email protected]"
+
+ENV DEBIAN_FRONTEND=noninteractive
+
+RUN <<EOF
+#!/bin/bash
+    set -eu
+
+    useradd --create-home user
+
+    apt-get update
+
+    DEPS=(
+        # Xen
+        bison
+        build-essential
+        checkpolicy
+        flex
+
+        # Tools (general)
+        ca-certificates
+        cpio
+        git-core
+        pkg-config
+        wget
+        # libxenguest dombuilder
+        libbz2-dev
+        liblzma-dev
+        liblzo2-dev
+        libzstd-dev
+        zlib1g-dev
+        # libacpi
+        acpica-tools
+        # libxl
+        libfdt-dev
+        libjson-c-dev
+        uuid-dev
+        # xentop
+        libncurses5-dev
+        # Python bindings
+        python3-dev
+        python3-setuptools
+        # Golang bindings
+        golang-go
+        # Ocaml bindings/oxenstored
+        ocaml-nox
+        ocaml-findlib
+
+        # for test phase, qemu-* jobs
+        busybox-static
+        curl
+        device-tree-compiler
+        expect
+        file
+        ovmf
+        u-boot-qemu
+        u-boot-tools
+    )
+
+    apt-get -y --no-install-recommends install "${DEPS[@]}"
+
+    rm -rf /var/lib/apt/lists*
+EOF
+
+USER user
+WORKDIR /build
automation/build/debian/bookworm-arm64v8.dockerfile deleted +0 -55

55 lines not on this page · raw message

automation/gitlab-ci/build.yaml +4 -4
index d027f26a6d6b..e50ff6936c5c 100644
@@ -413,15 +413,15 @@ debian-12-arm32-gcc-debug-mpu:
 
 # Arm builds
 
-debian-bookworm-gcc-arm64:
+debian-12-arm64-gcc:
   extends: .gcc-arm64-build
   variables:
-    CONTAINER: debian:bookworm-arm64v8
+    CONTAINER: debian:12-arm64v8
 
-debian-bookworm-gcc-debug-arm64:
+debian-12-arm64-gcc-debug:
   extends: .gcc-arm64-build-debug
   variables:
-    CONTAINER: debian:bookworm-arm64v8
+    CONTAINER: debian:12-arm64v8
 
 alpine-3.18-gcc-arm64:
   extends: .gcc-arm64-build
automation/gitlab-ci/test.yaml +2 -2
index e1d6bb505674..982fd86db079 100644
@@ -37,7 +37,7 @@
 .qemu-arm64:
   extends: .test-jobs-common
   variables:
-    CONTAINER: debian:bookworm-arm64v8
+    CONTAINER: debian:12-arm64v8
     LOGFILE: qemu-smoke-arm64.log
   artifacts:
     paths:
@@ -50,7 +50,7 @@
 .qemu-arm32:
   extends: .test-jobs-common
   variables:
-    CONTAINER: debian:bookworm-arm64v8
+    CONTAINER: debian:12-arm64v8
     LOGFILE: qemu-smoke-arm32.log
   artifacts:
     paths:
automation/scripts/containerize +1 -1
index ef3b97b65578..bda06054ebde 100755
@@ -39,7 +39,7 @@ case "_${CONTAINER}" in
     _trixie-x86_64|_) CONTAINER="${BASE}/debian:13-x86_64" ;;
     _bookworm-i386|_bookworm-x86_32) CONTAINER="${BASE}/debian:12-x86_32" ;;
     _bookworm-arm64v8-arm32) CONTAINER="${BASE}/debian:12-arm64v8-arm32" ;;
-    _bookworm-arm64v8) CONTAINER="${BASE}/debian:bookworm-arm64v8" ;;
+    _bookworm-arm64v8) CONTAINER="${BASE}/debian:12-arm64v8" ;;
     _bookworm-cppcheck) CONTAINER="${BASE}/debian:12-arm64v8-cppcheck" ;;
     _opensuse-leap|_leap) CONTAINER="${BASE}/opensuse:leap-15.6-x86_64" ;;
     _opensuse-tumbleweed|_tumbleweed) CONTAINER="${BASE}/opensuse:tumbleweed-x86_64" ;;
Signature · 1 line
2.39.5
Reviewed-by on v1 3/5
#9 lore raw

Re: [PATCH 3/5] CI: Refresh the Debian 12 arm64 container

Quoted 15 lines · Andrew Cooper

From: Javi Merino <[email protected]>

Rework the container to user heredocs for readability, derive from bookworm-slim and use apt-get --no-install-recommends to keep the size down.

Additionally:

* Make it a non-root container.
* Drop libext2fs-dev which is an x86-only dependency.
* Add libncurses5-dev for xentop and zlib1g-dev which was missing from the libxenguest decompressors.
* As there's no ninja, the container can no loger build QEMU so drop libglib2.0-dev and libpixman-1-dev too.
* Swap libyajl-dev for libjson-c-dev given the latters deprecation.

Quoted 7 lines

Rename the job to debian-12-arm64-* to follow the naming scheme of all the other CI jobs.

This reduces the size of the debian:12-arm64v8 from 2.25GB down to 1.62GB.

~Michal

#10 lore raw

PATCH 4/5 CI: Add a Debian 13 (Trixie) arm64 container

In reply to Andrew Cooper

Exactly as per the Bookworm container, but additionally with the ipxe-qemu and qemu-system-aarch64 packages. These will be used to remove the export jobs.

Switch qemu-arm{32,64} jobs to use this container.

No functional change.

---
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>

We should probably wire up some build tests too, but it's too late on a Friday for me to be thinking about that for this posting.

---
 automation/build/debian/13-arm64v8.dockerfile | 71 +++++++++++++++++++
 automation/gitlab-ci/test.yaml                |  4 +-
 automation/scripts/containerize               |  1 +
 3 files changed, 74 insertions(+), 2 deletions(-)
 create mode 100644 automation/build/debian/13-arm64v8.dockerfile
automation/build/debian/13-arm64v8.dockerfile new file +71 -0
new file mode 100644
index 000000000000..b9062ee8b443
@@ -0,0 +1,71 @@
+# syntax=docker/dockerfile:1
+FROM --platform=linux/arm64/v8 debian:trixie-slim
+LABEL maintainer.name="The Xen Project"
+LABEL maintainer.email="[email protected]"
+
+ENV DEBIAN_FRONTEND=noninteractive
+
+RUN <<EOF
+#!/bin/bash
+    set -eu
+
+    useradd --create-home user
+
+    apt-get update
+
+    DEPS=(
+        # Xen
+        bison
+        build-essential
+        checkpolicy
+        flex
+
+        # Tools (general)
+        ca-certificates
+        cpio
+        git-core
+        pkg-config
+        wget
+        # libxenguest dombuilder
+        libbz2-dev
+        liblzma-dev
+        liblzo2-dev
+        libzstd-dev
+        zlib1g-dev
+        # libacpi
+        acpica-tools
+        # libxl
+        libfdt-dev
+        libjson-c-dev
+        uuid-dev
+        # xentop
+        libncurses5-dev
+        # Python bindings
+        python3-dev
+        python3-setuptools
+        # Golang bindings
+        golang-go
+        # Ocaml bindings/oxenstored
+        ocaml-nox
+        ocaml-findlib
+
+        # for test phase, qemu-* jobs
+        busybox-static
+        curl
+        device-tree-compiler
+        expect
+        file
+        ipxe-qemu
+        ovmf
+        qemu-system-aarch64
+        u-boot-qemu
+        u-boot-tools
+    )
+
+    apt-get -y --no-install-recommends install "${DEPS[@]}"
+
+    rm -rf /var/lib/apt/lists*
+EOF
+
+USER user
+WORKDIR /build
automation/gitlab-ci/test.yaml +2 -2
index 982fd86db079..008deef98d1e 100644
@@ -37,7 +37,7 @@
 .qemu-arm64:
   extends: .test-jobs-common
   variables:
-    CONTAINER: debian:12-arm64v8
+    CONTAINER: debian:13-arm64v8
     LOGFILE: qemu-smoke-arm64.log
   artifacts:
     paths:
@@ -50,7 +50,7 @@
 .qemu-arm32:
   extends: .test-jobs-common
   variables:
-    CONTAINER: debian:12-arm64v8
+    CONTAINER: debian:13-arm64v8
     LOGFILE: qemu-smoke-arm32.log
   artifacts:
     paths:
automation/scripts/containerize +1 -0
index bda06054ebde..8bd2a847aac0 100755
@@ -41,6 +41,7 @@ case "_${CONTAINER}" in
     _bookworm-arm64v8-arm32) CONTAINER="${BASE}/debian:12-arm64v8-arm32" ;;
     _bookworm-arm64v8) CONTAINER="${BASE}/debian:12-arm64v8" ;;
     _bookworm-cppcheck) CONTAINER="${BASE}/debian:12-arm64v8-cppcheck" ;;
+    _trixie-arm64v8) CONTAINER="${BASE}/debian:13-arm64v8" ;;
     _opensuse-leap|_leap) CONTAINER="${BASE}/opensuse:leap-15.6-x86_64" ;;
     _opensuse-tumbleweed|_tumbleweed) CONTAINER="${BASE}/opensuse:tumbleweed-x86_64" ;;
     _xenial) CONTAINER="${BASE}/ubuntu:16.04-x86_64" ;;
Signature · 1 line
2.39.5
#11 lore raw

Re: [PATCH 4/5] CI: Add a Debian 13 (Trixie) arm64 container

Quoted 69 lines · Andrew Cooper

Exactly as per the Bookworm container, but additionally with the ipxe-qemu and qemu-system-aarch64 packages. These will be used to remove the export jobs.

Switch qemu-arm{32,64} jobs to use this container.

No functional change.

---
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>

We should probably wire up some build tests too, but it's too late on a Friday for me to be thinking about that for this posting.

---
 automation/build/debian/13-arm64v8.dockerfile | 71 +++++++++++++++++++
 automation/gitlab-ci/test.yaml                |  4 +-
 automation/scripts/containerize               |  1 +
 3 files changed, 74 insertions(+), 2 deletions(-)
 create mode 100644 automation/build/debian/13-arm64v8.dockerfile
automation/build/debian/13-arm64v8.dockerfile new file +40 -0
new file mode 100644
index 000000000000..b9062ee8b443
@@ -0,0 +1,71 @@
+# syntax=docker/dockerfile:1
+FROM --platform=linux/arm64/v8 debian:trixie-slim
+LABEL maintainer.name="The Xen Project"
+LABEL maintainer.email="[email protected]"
+
+ENV DEBIAN_FRONTEND=noninteractive
+
+RUN <<EOF
+#!/bin/bash
+    set -eu
+
+    useradd --create-home user
+
+    apt-get update
+
+    DEPS=(
+        # Xen
+        bison
+        build-essential
+        checkpolicy
+        flex
+
+        # Tools (general)
+        ca-certificates
+        cpio
+        git-core
+        pkg-config
+        wget
+        # libxenguest dombuilder
+        libbz2-dev
+        liblzma-dev
+        liblzo2-dev
+        libzstd-dev
+        zlib1g-dev
+        # libacpi
+        acpica-tools
+        # libxl
+        libfdt-dev
+        libjson-c-dev
+        uuid-dev

automation/build/debian/13-arm64v8.dockerfile line 50

Quoted 10 lines
automation/build/debian/13-arm64v8.dockerfile new file +10 -0
+        # xentop
+        libncurses5-dev
+        # Python bindings
+        python3-dev
+        python3-setuptools
+        # Golang bindings
+        golang-go
+        # Ocaml bindings/oxenstored
+        ocaml-nox
+        ocaml-findlib

Since this is a container used only for tests, why listing packages required for Xen and tools build?

automation/build/debian/13-arm64v8.dockerfile line 62

Quoted 12 lines
automation/build/debian/13-arm64v8.dockerfile new file +12 -0
+
+        # for test phase, qemu-* jobs
+        busybox-static
+        curl
+        device-tree-compiler
+        expect
+        file
+        ipxe-qemu
+        ovmf
+        qemu-system-aarch64
+        u-boot-qemu
+        u-boot-tools

So after this change, even though you replace debian-12 with debian-13 for all the tests, the debian-12 still contains the unneeded packages (i.e. for a test phase that it no longer runs).

~Michal

Quoted 43 lines
automation/build/debian/13-arm64v8.dockerfile new file +9 -0
+    )
+
+    apt-get -y --no-install-recommends install "${DEPS[@]}"
+
+    rm -rf /var/lib/apt/lists*
+EOF
+
+USER user
+WORKDIR /build
automation/gitlab-ci/test.yaml +2 -2
index 982fd86db079..008deef98d1e 100644
@@ -37,7 +37,7 @@
 .qemu-arm64:
   extends: .test-jobs-common
   variables:
-    CONTAINER: debian:12-arm64v8
+    CONTAINER: debian:13-arm64v8
     LOGFILE: qemu-smoke-arm64.log
   artifacts:
     paths:
@@ -50,7 +50,7 @@
 .qemu-arm32:
   extends: .test-jobs-common
   variables:
-    CONTAINER: debian:12-arm64v8
+    CONTAINER: debian:13-arm64v8
     LOGFILE: qemu-smoke-arm32.log
   artifacts:
     paths:
automation/scripts/containerize +1 -0
index bda06054ebde..8bd2a847aac0 100755
@@ -41,6 +41,7 @@ case "_${CONTAINER}" in
     _bookworm-arm64v8-arm32) CONTAINER="${BASE}/debian:12-arm64v8-arm32" ;;
     _bookworm-arm64v8) CONTAINER="${BASE}/debian:12-arm64v8" ;;
     _bookworm-cppcheck) CONTAINER="${BASE}/debian:12-arm64v8-cppcheck" ;;
+    _trixie-arm64v8) CONTAINER="${BASE}/debian:13-arm64v8" ;;
     _opensuse-leap|_leap) CONTAINER="${BASE}/opensuse:leap-15.6-x86_64" ;;
     _opensuse-tumbleweed|_tumbleweed) CONTAINER="${BASE}/opensuse:tumbleweed-x86_64" ;;
     _xenial) CONTAINER="${BASE}/ubuntu:16.04-x86_64" ;;
#12 lore raw

Re: [PATCH 4/5] CI: Add a Debian 13 (Trixie) arm64 container

Quoted 75 lines · Michal
Quoted 73 lines · Andrew Cooper

Exactly as per the Bookworm container, but additionally with the ipxe-qemu and qemu-system-aarch64 packages. These will be used to remove the export jobs.

Switch qemu-arm{32,64} jobs to use this container.

No functional change.

---
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>

We should probably wire up some build tests too, but it's too late on a Friday for me to be thinking about that for this posting.

---
 automation/build/debian/13-arm64v8.dockerfile | 71 +++++++++++++++++++
 automation/gitlab-ci/test.yaml                |  4 +-
 automation/scripts/containerize               |  1 +
 3 files changed, 74 insertions(+), 2 deletions(-)
 create mode 100644 automation/build/debian/13-arm64v8.dockerfile
automation/build/debian/13-arm64v8.dockerfile new file +44 -0
new file mode 100644
index 000000000000..b9062ee8b443
@@ -0,0 +1,71 @@
+# syntax=docker/dockerfile:1
+FROM --platform=linux/arm64/v8 debian:trixie-slim
+LABEL maintainer.name="The Xen Project"
+LABEL maintainer.email="[email protected]"
+
+ENV DEBIAN_FRONTEND=noninteractive
+
+RUN <<EOF
+#!/bin/bash
+    set -eu
+
+    useradd --create-home user
+
+    apt-get update
+
+    DEPS=(
+        # Xen
+        bison
+        build-essential
+        checkpolicy
+        flex
+
+        # Tools (general)
+        ca-certificates
+        cpio
+        git-core
+        pkg-config
+        wget
+        # libxenguest dombuilder
+        libbz2-dev
+        liblzma-dev
+        liblzo2-dev
+        libzstd-dev
+        zlib1g-dev
+        # libacpi
+        acpica-tools
+        # libxl
+        libfdt-dev
+        libjson-c-dev
+        uuid-dev
+        # xentop
+        libncurses5-dev
+        # Python bindings
+        python3-dev
Quoted 8 lines

automation/build/debian/13-arm64v8.dockerfile line 50

Quoted 6 lines
automation/build/debian/13-arm64v8.dockerfile new file +6 -0
+        python3-setuptools
+        # Golang bindings
+        golang-go
+        # Ocaml bindings/oxenstored
+        ocaml-nox
+        ocaml-findlib

Since this is a container used only for tests, why listing packages required for Xen and tools build?

I did leave a note about that.

Quoted 13 lines

automation/build/debian/13-arm64v8.dockerfile line 62

Quoted 13 lines
automation/build/debian/13-arm64v8.dockerfile new file +12 -0
+
+        # for test phase, qemu-* jobs
+        busybox-static
+        curl
+        device-tree-compiler
+        expect
+        file
+        ipxe-qemu
+        ovmf
+        qemu-system-aarch64
+        u-boot-qemu
+        u-boot-tools
Quoted 3 lines

So after this change, even though you replace debian-12 with debian-13 for all the tests, the debian-12 still contains the unneeded packages (i.e. for a test phase that it no longer runs).

Yes.  I can't do this series bisectably without it.  Also, in the past people have explicitly requested to be able to run the qemu smoke testing from the build container, which is why it's like this and not split.

Honestly, I was hoping to leave the Trixie update to the ARM maintainers, but despite the Bookworm QEMU (7.2) being newer than the 6.0 in the export jobs, it contains the SYSREG interception bugs which prevents hiding ThumbEE from guests, and breaks all the arm32 testing with a Linux dom0.

~Andrew

Reviewed-by
#13 lore raw

Re: [PATCH 4/5] CI: Add a Debian 13 (Trixie) arm64 container

Quoted 100 lines · Andrew Cooper
Quoted 75 lines · Michal
Quoted 73 lines · Andrew Cooper

Exactly as per the Bookworm container, but additionally with the ipxe-qemu and qemu-system-aarch64 packages. These will be used to remove the export jobs.

Switch qemu-arm{32,64} jobs to use this container.

No functional change.

---
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>

We should probably wire up some build tests too, but it's too late on a Friday for me to be thinking about that for this posting.

---
 automation/build/debian/13-arm64v8.dockerfile | 71 +++++++++++++++++++
 automation/gitlab-ci/test.yaml                |  4 +-
 automation/scripts/containerize               |  1 +
 3 files changed, 74 insertions(+), 2 deletions(-)
 create mode 100644 automation/build/debian/13-arm64v8.dockerfile
automation/build/debian/13-arm64v8.dockerfile new file +44 -0
new file mode 100644
index 000000000000..b9062ee8b443
@@ -0,0 +1,71 @@
+# syntax=docker/dockerfile:1
+FROM --platform=linux/arm64/v8 debian:trixie-slim
+LABEL maintainer.name="The Xen Project"
+LABEL maintainer.email="[email protected]"
+
+ENV DEBIAN_FRONTEND=noninteractive
+
+RUN <<EOF
+#!/bin/bash
+    set -eu
+
+    useradd --create-home user
+
+    apt-get update
+
+    DEPS=(
+        # Xen
+        bison
+        build-essential
+        checkpolicy
+        flex
+
+        # Tools (general)
+        ca-certificates
+        cpio
+        git-core
+        pkg-config
+        wget
+        # libxenguest dombuilder
+        libbz2-dev
+        liblzma-dev
+        liblzo2-dev
+        libzstd-dev
+        zlib1g-dev
+        # libacpi
+        acpica-tools
+        # libxl
+        libfdt-dev
+        libjson-c-dev
+        uuid-dev
+        # xentop
+        libncurses5-dev
+        # Python bindings
+        python3-dev
Quoted 8 lines

automation/build/debian/13-arm64v8.dockerfile line 50

Quoted 6 lines
automation/build/debian/13-arm64v8.dockerfile new file +6 -0
+        python3-setuptools
+        # Golang bindings
+        golang-go
+        # Ocaml bindings/oxenstored
+        ocaml-nox
+        ocaml-findlib

Since this is a container used only for tests, why listing packages required for Xen and tools build?

I did leave a note about that.

Quoted 13 lines
Quoted 13 lines
automation/build/debian/13-arm64v8.dockerfile new file +12 -0
+
+        # for test phase, qemu-* jobs
+        busybox-static
+        curl
+        device-tree-compiler
+        expect
+        file
+        ipxe-qemu
+        ovmf
+        qemu-system-aarch64
+        u-boot-qemu
+        u-boot-tools
Quoted 5 lines
Quoted 3 lines

So after this change, even though you replace debian-12 with debian-13 for all the tests, the debian-12 still contains the unneeded packages (i.e. for a test phase that it no longer runs).

Yes.  I can't do this series bisectably without it.  Also, in the past

Ok, I understand the bisectibility problem.

Quoted 2 lines

people have explicitly requested to be able to run the qemu smoke testing from the build container, which is why it's like this and not split.

Unless it's a rule that every container follows and is documented somewhere I don't like this argument. My plan then is to do the clean up of Arm containers in the future to remove packages not used. It creates more confusion for people willing to create their own dockerfiles for testing (or just to see what it takes to build e.g. Xen on Arm) than it gives benefits.

Quoted 6 lines

Honestly, I was hoping to leave the Trixie update to the ARM maintainers, but despite the Bookworm QEMU (7.2) being newer than the 6.0 in the export jobs, it contains the SYSREG interception bugs which prevents hiding ThumbEE from guests, and breaks all the arm32 testing with a Linux dom0.

Does it make sense to have both Debian 12 and Debian 13 build/test? Can't we have just the latest one?

All of the remarks above are not something that should prevent this patch from going in, so:

~Michal

#14 lore raw

Re: [PATCH 4/5] CI: Add a Debian 13 (Trixie) arm64 container

Quoted 99 lines · Michal
Quoted 97 lines · Andrew Cooper
Quoted 74 lines · Michal
Quoted 73 lines · Andrew Cooper

Exactly as per the Bookworm container, but additionally with the ipxe-qemu and qemu-system-aarch64 packages. These will be used to remove the export jobs.

Switch qemu-arm{32,64} jobs to use this container.

No functional change.

---
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>

We should probably wire up some build tests too, but it's too late on a Friday for me to be thinking about that for this posting.

---
 automation/build/debian/13-arm64v8.dockerfile | 71 +++++++++++++++++++
 automation/gitlab-ci/test.yaml                |  4 +-
 automation/scripts/containerize               |  1 +
 3 files changed, 74 insertions(+), 2 deletions(-)
 create mode 100644 automation/build/debian/13-arm64v8.dockerfile
automation/build/debian/13-arm64v8.dockerfile new file +44 -0
new file mode 100644
index 000000000000..b9062ee8b443
@@ -0,0 +1,71 @@
+# syntax=docker/dockerfile:1
+FROM --platform=linux/arm64/v8 debian:trixie-slim
+LABEL maintainer.name="The Xen Project"
+LABEL maintainer.email="[email protected]"
+
+ENV DEBIAN_FRONTEND=noninteractive
+
+RUN <<EOF
+#!/bin/bash
+    set -eu
+
+    useradd --create-home user
+
+    apt-get update
+
+    DEPS=(
+        # Xen
+        bison
+        build-essential
+        checkpolicy
+        flex
+
+        # Tools (general)
+        ca-certificates
+        cpio
+        git-core
+        pkg-config
+        wget
+        # libxenguest dombuilder
+        libbz2-dev
+        liblzma-dev
+        liblzo2-dev
+        libzstd-dev
+        zlib1g-dev
+        # libacpi
+        acpica-tools
+        # libxl
+        libfdt-dev
+        libjson-c-dev
+        uuid-dev
+        # xentop
+        libncurses5-dev
+        # Python bindings
+        python3-dev
Quoted 8 lines

automation/build/debian/13-arm64v8.dockerfile line 50

Quoted 6 lines
automation/build/debian/13-arm64v8.dockerfile new file +6 -0
+        python3-setuptools
+        # Golang bindings
+        golang-go
+        # Ocaml bindings/oxenstored
+        ocaml-nox
+        ocaml-findlib

Since this is a container used only for tests, why listing packages required for Xen and tools build?

I did leave a note about that.

Quoted 12 lines
Quoted 12 lines
automation/build/debian/13-arm64v8.dockerfile new file +12 -0
+
+        # for test phase, qemu-* jobs
+        busybox-static
+        curl
+        device-tree-compiler
+        expect
+        file
+        ipxe-qemu
+        ovmf
+        qemu-system-aarch64
+        u-boot-qemu
+        u-boot-tools
Quoted 5 lines
Quoted 4 lines
Quoted 3 lines

So after this change, even though you replace debian-12 with debian-13 for all the tests, the debian-12 still contains the unneeded packages (i.e. for a test phase that it no longer runs).

Yes.  I can't do this series bisectably without it.  Also, in the past

Ok, I understand the bisectibility problem.

On further thought, I can in principle fix bisectibility by introducing Trixie first, but that loses the logical sequence of events somewhat.

Quoted 4 lines
Quoted 2 lines

people have explicitly requested to be able to run the qemu smoke testing from the build container, which is why it's like this and not split.

Unless it's a rule that every container follows and is documented somewhere I don't like this argument.

It was explicitly requested by ARM, and accepted at a time.

If you'd like to revisit this decision, that's also fine too, but I don't want to be flip-flopping on it.

I could:
1) Make a 13-arm64v8-test.dockerfile containing only the test phase stuff
2) Switch to this ahead of the 12 cleanup
3) Do the 12 cleanup without the test phase stuff

although this makes a new scheme that we haven't used before.

The one thing to say.  It's almost always safe to add packages to an existing container, but ...

Quoted 2 lines

My plan then is to do the clean up of Arm containers in the future to remove packages not used.

... you can't remove packages from an existing container.  The containers are shared by all stable branches, and you'll generally break older branches by doing this.

Where we have dropped dependences, e.g. ae26101f6bfc, I've commented the dockerfile so it doesn't get copied forwards into a new container, and can be dropped when the identified version falls out of stable support.

a0e29b316 is an example where the containers did get rebuilt after the version of Xen ceased being tested.

Quoted 3 lines

It creates more confusion for people
willing to create their own dockerfiles for testing (or just to see what it takes to build e.g. Xen on Arm) than it gives benefits.

That's why the dependencies are grouped and labelled.  I do expect people to be able to figure out the bits they don't need based on the comments.

Quoted 7 lines
Quoted 5 lines

Honestly, I was hoping to leave the Trixie update to the ARM maintainers, but despite the Bookworm QEMU (7.2) being newer than the 6.0 in the export jobs, it contains the SYSREG interception bugs which prevents hiding ThumbEE from guests, and breaks all the arm32 testing with a Linux dom0.

Does it make sense to have both Debian 12 and Debian 13 build/test? Can't we have just the latest one?

Build, yes absolutely.  You want as wider range of compilers/toolchains as possible.

Test, we tend to only do one.  For x86 it's the alpine build; for ARM, it's from the Debian build.

Quoted 3 lines

All of the remarks above are not something that should prevent this patch from going in, so:

Thanks, but lets see about the latest proposal first.

~Andrew

#15 lore raw

Re: [PATCH 4/5] CI: Add a Debian 13 (Trixie) arm64 container

Quoted 156 lines · Andrew Cooper
Quoted 98 lines · Michal
Quoted 97 lines · Andrew Cooper
Quoted 74 lines · Michal
Quoted 73 lines · Andrew Cooper

Exactly as per the Bookworm container, but additionally with the ipxe-qemu and qemu-system-aarch64 packages. These will be used to remove the export jobs.

Switch qemu-arm{32,64} jobs to use this container.

No functional change.

---
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>

We should probably wire up some build tests too, but it's too late on a Friday for me to be thinking about that for this posting.

---
 automation/build/debian/13-arm64v8.dockerfile | 71 +++++++++++++++++++
 automation/gitlab-ci/test.yaml                |  4 +-
 automation/scripts/containerize               |  1 +
 3 files changed, 74 insertions(+), 2 deletions(-)
 create mode 100644 automation/build/debian/13-arm64v8.dockerfile
automation/build/debian/13-arm64v8.dockerfile new file +44 -0
new file mode 100644
index 000000000000..b9062ee8b443
@@ -0,0 +1,71 @@
+# syntax=docker/dockerfile:1
+FROM --platform=linux/arm64/v8 debian:trixie-slim
+LABEL maintainer.name="The Xen Project"
+LABEL maintainer.email="[email protected]"
+
+ENV DEBIAN_FRONTEND=noninteractive
+
+RUN <<EOF
+#!/bin/bash
+    set -eu
+
+    useradd --create-home user
+
+    apt-get update
+
+    DEPS=(
+        # Xen
+        bison
+        build-essential
+        checkpolicy
+        flex
+
+        # Tools (general)
+        ca-certificates
+        cpio
+        git-core
+        pkg-config
+        wget
+        # libxenguest dombuilder
+        libbz2-dev
+        liblzma-dev
+        liblzo2-dev
+        libzstd-dev
+        zlib1g-dev
+        # libacpi
+        acpica-tools
+        # libxl
+        libfdt-dev
+        libjson-c-dev
+        uuid-dev
+        # xentop
+        libncurses5-dev
+        # Python bindings
+        python3-dev
Quoted 8 lines

automation/build/debian/13-arm64v8.dockerfile line 50

Quoted 6 lines
automation/build/debian/13-arm64v8.dockerfile new file +6 -0
+        python3-setuptools
+        # Golang bindings
+        golang-go
+        # Ocaml bindings/oxenstored
+        ocaml-nox
+        ocaml-findlib

Since this is a container used only for tests, why listing packages required for Xen and tools build?

I did leave a note about that.

Quoted 12 lines
Quoted 12 lines
automation/build/debian/13-arm64v8.dockerfile new file +12 -0
+
+        # for test phase, qemu-* jobs
+        busybox-static
+        curl
+        device-tree-compiler
+        expect
+        file
+        ipxe-qemu
+        ovmf
+        qemu-system-aarch64
+        u-boot-qemu
+        u-boot-tools
Quoted 5 lines
Quoted 4 lines
Quoted 3 lines

So after this change, even though you replace debian-12 with debian-13 for all the tests, the debian-12 still contains the unneeded packages (i.e. for a test phase that it no longer runs).

Yes.  I can't do this series bisectably without it.  Also, in the past

Ok, I understand the bisectibility problem.

On further thought, I can in principle fix bisectibility by introducing Trixie first, but that loses the logical sequence of events somewhat.

Quoted 4 lines
Quoted 2 lines

people have explicitly requested to be able to run the qemu smoke testing from the build container, which is why it's like this and not split.

Unless it's a rule that every container follows and is documented somewhere I don't like this argument.

It was explicitly requested by ARM, and accepted at a time.

If you'd like to revisit this decision, that's also fine too, but I don't want to be flip-flopping on it.

I could:
1) Make a 13-arm64v8-test.dockerfile containing only the test phase stuff
2) Switch to this ahead of the 12 cleanup
3) Do the 12 cleanup without the test phase stuff

although this makes a new scheme that we haven't used before.

The one thing to say.  It's almost always safe to add packages to an existing container, but ...

Quoted 2 lines

My plan then is to do the clean up of Arm containers in the future to remove packages not used.

... you can't remove packages from an existing container.  The containers are shared by all stable branches, and you'll generally break older branches by doing this.

Where we have dropped dependences, e.g. ae26101f6bfc, I've commented the dockerfile so it doesn't get copied forwards into a new container, and can be dropped when the identified version falls out of stable support.

a0e29b316 is an example where the containers did get rebuilt after the version of Xen ceased being tested.

Quoted 3 lines

It creates more confusion for people
willing to create their own dockerfiles for testing (or just to see what it takes to build e.g. Xen on Arm) than it gives benefits.

That's why the dependencies are grouped and labelled.  I do expect people to be able to figure out the bits they don't need based on the comments.

Quoted 7 lines
Quoted 5 lines

Honestly, I was hoping to leave the Trixie update to the ARM maintainers, but despite the Bookworm QEMU (7.2) being newer than the 6.0 in the export jobs, it contains the SYSREG interception bugs which prevents hiding ThumbEE from guests, and breaks all the arm32 testing with a Linux dom0.

Does it make sense to have both Debian 12 and Debian 13 build/test? Can't we have just the latest one?

Build, yes absolutely.  You want as wider range of compilers/toolchains as possible.

Quoted 7 lines

Test, we tend to only do one.  For x86 it's the alpine build; for ARM, it's from the Debian build.

Quoted 3 lines

All of the remarks above are not something that should prevent this patch from going in, so:

Thanks, but lets see about the latest proposal first.

I'm folding in the following hunk:

(quoted diff) +0 -0

b/automation/gitlab-ci/build.yaml
index 128b5f45cbad..a1acf2e827df 100644

automation/gitlab-ci/build.yaml +0 -0
@@ -424,6 +424,16 @@ debian-12-arm64-gcc-debug:

   variables:
     CONTAINER: debian:12-arm64v8

+debian-13-arm64-gcc:
+  extends: .gcc-arm64-build
+  variables:
+    CONTAINER: debian:13-arm64v8
+
+debian-13-arm64-gcc-debug:
+  extends: .gcc-arm64-build-debug
+  variables:
+    CONTAINER: debian:13-arm64v8
+
 alpine-3.18-gcc-arm64:
   extends: .gcc-arm64-build
   <<: *build-test

which performs some build testing using this container too.  Full resulting pipeline:

https://gitlab.com/xen-project/hardware/xen-staging/-/pipelines/2562180822

~Andrew

#16 lore raw

PATCH 5/5 CI: Switch qemu-arm* jobs to using the distro provided QEMU

In reply to Andrew Cooper

This removes qemu-system-aarch64-6.0.0-*-export and fixes the outstanding TODOs about efi-virtio.rom, now that the QEMU in use has it's /usr/share/ properly packaged.

---
CC: Anthony PERARD <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Michal Orzel <[email protected]>
CC: Doug Goldstein <[email protected]>

---
 automation/gitlab-ci/build.yaml               | 33 --------
 automation/gitlab-ci/test.yaml                |  2 -
 automation/scripts/include/xtf-arm64          |  7 +-
 automation/scripts/qemu-smoke-dom0-arm32.sh   |  6 +-
 automation/scripts/qemu-smoke-dom0-arm64.sh   |  6 +-
 .../scripts/qemu-smoke-dom0less-arm32.sh      |  6 +-
 .../scripts/qemu-smoke-dom0less-arm64.sh      |  6 +-
 .../6.0.0-arm64v8.dockerfile                  | 77 -------------------
 8 files changed, 10 insertions(+), 133 deletions(-)
 delete mode 100644 automation/tests-artifacts/qemu-system-aarch64/6.0.0-arm64v8.dockerfile
automation/gitlab-ci/build.yaml +0 -33
index e50ff6936c5c..be4a038363ac 100644
@@ -265,39 +265,6 @@
   variables:
     <<: *gcc
 
-## Test artifacts common
-
-.test-jobs-artifact-common:
-  stage: build
-  needs: []
-  rules:
-    - if: $CI_JOB_NAME =~ $SELECTED_JOBS_ONLY
-      when: on_success
-
-# Arm test artifacts
-
-qemu-system-aarch64-6.0.0-arm64-export:
-  extends: .test-jobs-artifact-common
-  image: registry.gitlab.com/xen-project/xen/tests-artifacts/qemu-system-aarch64:6.0.0-arm64v8
-  script:
-    - mkdir binaries && cp /qemu-system-aarch64 binaries/qemu-system-aarch64
-  artifacts:
-    paths:
-      - binaries/qemu-system-aarch64
-  tags:
-    - arm64
-
-qemu-system-aarch64-6.0.0-arm32-export:
-  extends: .test-jobs-artifact-common
-  image: registry.gitlab.com/xen-project/xen/tests-artifacts/qemu-system-aarch64:6.0.0-arm64v8
-  script:
-    - mkdir binaries && cp /qemu-system-arm binaries/qemu-system-arm
-  artifacts:
-    paths:
-      - binaries/qemu-system-arm
-  tags:
-    - arm64
-
 # Jobs below this line
 
 # Build jobs needed for tests
automation/gitlab-ci/test.yaml +0 -2
index 008deef98d1e..1722800c1541 100644
@@ -12,7 +12,6 @@
   - project: $ARTIFACTS_REPO
     job: alpine-3.18-arm64-rootfs
     ref: $ARTIFACTS_BRANCH
-  - qemu-system-aarch64-6.0.0-arm64-export
 
 .arm32-test-needs: &arm32-test-needs
   # Bodge to ensure binaries/ is non-root.  Can be any artefact which comes
@@ -21,7 +20,6 @@
   - project: $ARTIFACTS_REPO
     job: microcode-x86
     ref: $ARTIFACTS_BRANCH
-  - qemu-system-aarch64-6.0.0-arm32-export
 
 .x86-64-test-needs: &x86-64-test-needs
   - project: $ARTIFACTS_REPO
automation/scripts/include/xtf-arm64 +2 -5
index 1a318b7aa0ba..5d851af788a1 100644
@@ -7,7 +7,7 @@
 function xtf_arch_prepare()
 {
     export FW_PREFIX="${FW_PREFIX:-/usr/lib/u-boot/qemu_arm64/}"
-    export QEMU_PREFIX="${QEMU_PREFIX:-${WORKDIR}/}"
+    export QEMU_PREFIX="${QEMU_PREFIX:-}"
     export XEN_BINARY="${XEN_BINARY:-${WORKDIR}/xen}"
     export XEN_CMDLINE="${XEN_CMDLINE:-loglvl=all noreboot console_timestamps=boot console=dtuart}"
     export XTF_SRC_BRANCH="${XTF_SRC_BRANCH:-xtf-arm}"
@@ -18,9 +18,6 @@ function xtf_arch_prepare()
 # Perform arch-specific XTF environment setup.
 function xtf_arch_setup()
 {
-    # QEMU looks for "efi-virtio.rom" even if it is unneeded
-    curl -fsSLO https://github.com/qemu/qemu/raw/v5.2.0/pc-bios/efi-virtio.rom
-
     # Crude check for local testing
     if [ ! -d imagebuilder ]; then
         git clone --depth 1 https://gitlab.com/xen-project/imagebuilder.git
@@ -47,7 +44,7 @@ EOF
     cp ${XTF_BINARY} ${WORKDIR}/xtf-test
 
     # Generate virt-gicv2.dtb
-    ${WORKDIR}/qemu-system-aarch64 \
+    ${QEMU_PREFIX}qemu-system-aarch64 \
         -machine virtualization=true \
         -cpu cortex-a57 \
         -machine type=virt \
automation/scripts/qemu-smoke-dom0-arm32.sh +2 -4
index 58797f7d30d3..5dc348c71aa9 100755
@@ -39,9 +39,7 @@ cp ../zImage ./root
 find . | cpio -R 0:0 -H newc -o | gzip > ../initrd.gz
 cd ..
 
-# XXX QEMU looks for "efi-virtio.rom" even if it is unneeded
-curl -fsSLO https://github.com/qemu/qemu/raw/v5.2.0/pc-bios/efi-virtio.rom
-./qemu-system-arm \
+qemu-system-arm \
    -machine virt \
    -machine virtualization=true \
    -smp 4 \
@@ -77,7 +75,7 @@ git clone --depth 1 https://gitlab.com/xen-project/imagebuilder.git
 bash imagebuilder/scripts/uboot-script-gen -t tftp -d . -c config
 
 rm -f ${serial_log}
-export TEST_CMD="./qemu-system-arm \
+export TEST_CMD="qemu-system-arm \
    -machine virt \
    -machine virtualization=true \
    -smp 4 \
automation/scripts/qemu-smoke-dom0-arm64.sh +2 -4
index 05962bdc0203..1d673f184251 100755
@@ -57,9 +57,7 @@ chmod +x etc/local.d/xen.start
 find . | cpio -R 0:0 -H newc -o | gzip >> ../dom0-rootfs.cpio.gz
 cd ../..
 
-# XXX QEMU looks for "efi-virtio.rom" even if it is unneeded
-curl -fsSLO https://github.com/qemu/qemu/raw/v5.2.0/pc-bios/efi-virtio.rom
-./binaries/qemu-system-aarch64 \
+qemu-system-aarch64 \
    -machine virtualization=true \
    -cpu cortex-a57 -machine type=virt \
    -m 2048 -smp 2 -display none \
@@ -90,7 +88,7 @@ bash imagebuilder/scripts/uboot-script-gen -t tftp -d binaries/ -c binaries/conf
 
 # Run the test
 rm -f smoke.serial
-export TEST_CMD="./binaries/qemu-system-aarch64 \
+export TEST_CMD="qemu-system-aarch64 \
     -machine virtualization=true \
     -cpu cortex-a57 -machine type=virt \
     -m 2048 -monitor none -serial stdio \
automation/scripts/qemu-smoke-dom0less-arm32.sh +2 -4
index 627d890a3926..20e43b4f049d 100755
@@ -78,9 +78,7 @@ chmod +x init
 find . | cpio -R 0:0 -H newc -o | gzip > ../initrd.gz
 cd ..
 
-# XXX QEMU looks for "efi-virtio.rom" even if it is unneeded
-curl -fsSLO https://github.com/qemu/qemu/raw/v5.2.0/pc-bios/efi-virtio.rom
-./qemu-system-arm \
+qemu-system-arm \
     -machine virt \
     -machine virtualization=true \
     -smp 4 \
@@ -130,7 +128,7 @@ bash imagebuilder/scripts/uboot-script-gen -t tftp -d . -c config
 
 # Run the test
 rm -f ${serial_log}
-export TEST_CMD="./qemu-system-arm \
+export TEST_CMD="qemu-system-arm \
     -machine virt \
     -machine virtualization=true \
     -smp 4 \
automation/scripts/qemu-smoke-dom0less-arm64.sh +2 -4
index 05c4a6acbb59..a9e99f1ae392 100755
@@ -78,9 +78,7 @@ if [[ "${test_variant}" == "gicv3" ]]; then
     domU_check="echo \"${passed}\""
 fi
 
-# XXX QEMU looks for "efi-virtio.rom" even if it is unneeded
-curl -fsSLO https://github.com/qemu/qemu/raw/v5.2.0/pc-bios/efi-virtio.rom
-./binaries/qemu-system-aarch64 \
+qemu-system-aarch64 \
    -machine virtualization=true \
    -cpu cortex-a57 -machine type=virt,gic-version=$gic_version \
    -m 2048 -smp 2 -display none \
@@ -203,7 +201,7 @@ bash imagebuilder/scripts/uboot-script-gen -t tftp -d binaries/ -c binaries/conf
 
 # Run the test
 rm -f smoke.serial
-export TEST_CMD="./binaries/qemu-system-aarch64 \
+export TEST_CMD="qemu-system-aarch64 \
     -machine virtualization=true \
     -cpu cortex-a57 -machine type=virt,gic-version=$gic_version \
     -m 2048 -monitor none -serial stdio \
automation/tests-artifacts/qemu-system-aarch64/6.0.0-arm64v8.dockerfile deleted +0 -77

77 lines not on this page · raw message

Signature · 1 line
2.39.5