]> xenbits.xensource.com Git - people/andrewcoop/xen.git/commitdiff
CI: Include microcode for x86 hardware jobs
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 11 Apr 2025 19:28:15 +0000 (20:28 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 14 Apr 2025 18:20:58 +0000 (19:20 +0100)
All the x86 hardware runners are out of date, to varying degrees, in terms of
microcode.

Microcode must be uncompressed and prepended to the initrd in order for Xen to
be able to use it during early boot.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Anthony PERARD <anthony.perard@vates.tech>
automation/gitlab-ci/build.yaml
automation/gitlab-ci/test.yaml
automation/scripts/qubes-x86-64.sh
automation/scripts/xilinx-smoke-dom0-x86_64.sh

index 1b82b359d01fd374217e944c95187700c76570d5..ac536787452692d35bee1349ac5a516d06772075 100644 (file)
@@ -306,6 +306,7 @@ alpine-3.18-gcc-debug:
       CONFIG_ARGO=y
       CONFIG_UBSAN=y
       CONFIG_UBSAN_FATAL=y
+      CONFIG_UCODE_SCAN_DEFAULT=y
       CONFIG_XHCI=y
 
 debian-12-x86_64-gcc-debug:
index ef3560930ce13123b72e078cd539b2fb57803d61..5ce445b78f7c8a8dc1b960d1cb3b7f0382b51ac7 100644 (file)
@@ -26,6 +26,9 @@
   - project: xen-project/hardware/test-artifacts
     job: alpine-3.18-x86_64-rootfs
     ref: master
+  - project: xen-project/hardware/test-artifacts
+    job: microcode-x86
+    ref: master
 
 .qemu-arm64:
   extends: .test-jobs-common
@@ -247,6 +250,9 @@ xilinx-smoke-dom0-x86_64-gcc-debug-argo:
     - project: xen-project/hardware/test-artifacts
       job: alpine-3.18-x86_64-rootfs
       ref: master
+    - project: xen-project/hardware/test-artifacts
+      job: microcode-x86
+      ref: master
 
 adl-smoke-x86-64-gcc-debug:
   extends: .adl-x86-64
index 3947027d6e4dc5059ab9fc956d973080e0d71705..1f90e7002c734285fde372d73b606a311bd2ca66 100755 (executable)
@@ -188,7 +188,8 @@ Kernel \r on an \m (\l)
 fi
 
 # Dom0 rootfs
-cp binaries/rootfs.cpio.gz binaries/dom0-rootfs.cpio.gz
+cp binaries/ucode.cpio binaries/dom0-rootfs.cpio.gz
+cat binaries/rootfs.cpio.gz >> binaries/dom0-rootfs.cpio.gz
 cat binaries/xen-tools.cpio.gz >> binaries/dom0-rootfs.cpio.gz
 
 # test-local configuration
index 1f8cc172c630795c227704467be1e800e7ae598e..5bb44188dc3d2d5e8d028344ed5917ea609b4f02 100755 (executable)
@@ -106,7 +106,8 @@ cd ..
 rm -rf rootfs
 
 # Dom0 rootfs
-cp binaries/rootfs.cpio.gz binaries/dom0-rootfs.cpio.gz
+cp binaries/ucode.cpio binaries/dom0-rootfs.cpio.gz
+cat binaries/rootfs.cpio.gz >> binaries/dom0-rootfs.cpio.gz
 cat binaries/xen-tools.cpio.gz >> binaries/dom0-rootfs.cpio.gz
 if [[ "${TEST}" == argo ]]; then
     cat binaries/argo.cpio.gz >> binaries/dom0-rootfs.cpio.gz