* [PATCH 0/4] CI: Add an EFI/StrictNX test
@ 2026-11-26 21:03 Andrew Cooper
2026-11-26 21:03 ` [PATCH 1/4] CI: Update Fedora to 45 Andrew Cooper
` (3 more replies)
0 siblings, 4 replies; 12+ messages in thread
From: Andrew Cooper @ 2026-11-26 21:03 UTC (permalink / raw)
To: Xen-devel
Cc: Anthony PERARD, Stefano Stabellini, Michal Orzel, Doug Goldstein,
Marek Marczykowski-Górecki, Jan Beulich,
Roger Pau Monné, Teddy Astie, Daniel P . Smith,
Frediano Ziglio
https://gitlab.com/xen-project/hardware/xen-staging/-/jobs/18411468064
This is good enough to at least get a regression test in CI.
Further work is going to be required to become strictly spec compliant,
aligning all data sections properly. See patch 3 for details.
Andrew Cooper (2):
CI: Update Fedora to 45
x86/efi: Move the trampoline into .init.data for EFI builds
Frediano Ziglio (1):
x86/efi: Split .init section to satisfy Microsoft UEFI signing
requirements
Roger Pau Monné (1):
CI: Add an EFI/StrictNX test
...x86_64.dockerfile => 45-x86_64.dockerfile} | 9 ++-
automation/gitlab-ci/build.yaml | 8 +--
automation/gitlab-ci/test.yaml | 9 +++
automation/scripts/containerize | 2 +-
.../scripts/include/xtf-x86_64-efi-strictnx | 64 +++++++++++++++++++
xen/arch/x86/boot/head.S | 14 +++-
xen/arch/x86/xen.lds.S | 25 +++++---
7 files changed, 116 insertions(+), 15 deletions(-)
rename automation/build/fedora/{43-x86_64.dockerfile => 45-x86_64.dockerfile} (88%)
create mode 100644 automation/scripts/include/xtf-x86_64-efi-strictnx
--
2.39.5
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH 1/4] CI: Update Fedora to 45
2026-11-26 21:03 [PATCH 0/4] CI: Add an EFI/StrictNX test Andrew Cooper
@ 2026-11-26 21:03 ` Andrew Cooper
2026-11-30 20:10 ` Stefano Stabellini
2026-11-26 21:03 ` [PATCH 2/4] x86/efi: Move the trampoline into .init.data for EFI builds Andrew Cooper
` (2 subsequent siblings)
3 siblings, 1 reply; 12+ messages in thread
From: Andrew Cooper @ 2026-11-26 21:03 UTC (permalink / raw)
To: Xen-devel
Cc: Anthony PERARD, Stefano Stabellini, Michal Orzel, Doug Goldstein,
Marek Marczykowski-Górecki, Jan Beulich,
Roger Pau Monné, Teddy Astie, Daniel P . Smith,
Frediano Ziglio
Fedora 43 is about to hit EoL.
This also gets us a container with binutils >= 2.46, which is going to be
needed for EFI/StrictNX testing.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
---
CC: Anthony PERARD <anthony.perard@vates.tech>
CC: Stefano Stabellini <sstabellini@kernel.org>
CC: Michal Orzel <michal.orzel@amd.com>
CC: Doug Goldstein <cardoe@cardoe.com>
CC: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
CC: Jan Beulich <jbeulich@suse.com>
CC: Roger Pau Monné <roger@xenproject.org>
CC: Teddy Astie <teddy.astie@vates.tech>
CC: Daniel P. Smith <dpsmith@apertussolutions.com>
CC: Frediano Ziglio <freddy77@gmail.com>
I have already deployed this container, including the additional change from
patch 4.
---
.../fedora/{43-x86_64.dockerfile => 45-x86_64.dockerfile} | 2 +-
automation/gitlab-ci/build.yaml | 8 ++++----
automation/scripts/containerize | 2 +-
3 files changed, 6 insertions(+), 6 deletions(-)
rename automation/build/fedora/{43-x86_64.dockerfile => 45-x86_64.dockerfile} (97%)
diff --git a/automation/build/fedora/43-x86_64.dockerfile b/automation/build/fedora/45-x86_64.dockerfile
similarity index 97%
rename from automation/build/fedora/43-x86_64.dockerfile
rename to automation/build/fedora/45-x86_64.dockerfile
index 0a2329e2dc37..5a1764c7ee55 100644
--- a/automation/build/fedora/43-x86_64.dockerfile
+++ b/automation/build/fedora/45-x86_64.dockerfile
@@ -1,5 +1,5 @@
# syntax=docker/dockerfile:1
-FROM --platform=linux/amd64 fedora:43
+FROM --platform=linux/amd64 fedora:45
LABEL maintainer.name="The Xen Project"
LABEL maintainer.email="xen-devel@lists.xenproject.org"
diff --git a/automation/gitlab-ci/build.yaml b/automation/gitlab-ci/build.yaml
index 94359febdae2..676009045448 100644
--- a/automation/gitlab-ci/build.yaml
+++ b/automation/gitlab-ci/build.yaml
@@ -619,15 +619,15 @@ debian-13-x86_32-gcc-debug:
variables:
CONTAINER: debian:13-x86_32
-fedora-43-x86_64-gcc:
+fedora-45-x86_64-gcc:
extends: .gcc-x86_64-build
variables:
- CONTAINER: fedora:43-x86_64
+ CONTAINER: fedora:45-x86_64
-fedora-43-x86_64-gcc-debug:
+fedora-45-x86_64-gcc-debug:
extends: .gcc-x86_64-build-debug
variables:
- CONTAINER: fedora:43-x86_64
+ CONTAINER: fedora:45-x86_64
ubuntu-18.04-x86_64-gcc:
extends: .gcc-x86_64-build
diff --git a/automation/scripts/containerize b/automation/scripts/containerize
index feadd9e82fc4..8a175fcd0b36 100755
--- a/automation/scripts/containerize
+++ b/automation/scripts/containerize
@@ -27,7 +27,7 @@ case "_${CONTAINER}" in
_alpine) CONTAINER="${BASE}/alpine:3.24-x86_64" ;;
_alpine-arm64v8) CONTAINER="${BASE}/alpine:3.24-arm64v8" ;;
_archlinux|_arch) CONTAINER="${BASE}/archlinux:current-x86_64" ;;
- _fedora) CONTAINER="${BASE}/fedora:43-x86_64";;
+ _fedora) CONTAINER="${BASE}/fedora:45-x86_64";;
_bullseye-ppc64le) CONTAINER="${BASE}/debian:11-ppc64le" ;;
_bookworm-ppc64le) CONTAINER="${BASE}/debian:12-ppc64le" ;;
_trixie-ppc64le) CONTAINER="${BASE}/debian:13-ppc64le" ;;
--
2.39.5
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 2/4] x86/efi: Move the trampoline into .init.data for EFI builds
2026-11-26 21:03 [PATCH 0/4] CI: Add an EFI/StrictNX test Andrew Cooper
2026-11-26 21:03 ` [PATCH 1/4] CI: Update Fedora to 45 Andrew Cooper
@ 2026-11-26 21:03 ` Andrew Cooper
2026-11-30 9:34 ` Jan Beulich
2026-11-30 17:04 ` [PATCH v2 " Andrew Cooper
2026-11-26 21:03 ` [PATCH 3/4] x86/efi: Split .init section to satisfy Microsoft UEFI signing requirements Andrew Cooper
2026-11-26 21:03 ` [PATCH 4/4] CI: Add an EFI/StrictNX test Andrew Cooper
3 siblings, 2 replies; 12+ messages in thread
From: Andrew Cooper @ 2026-11-26 21:03 UTC (permalink / raw)
To: Xen-devel
Cc: Anthony PERARD, Stefano Stabellini, Michal Orzel, Doug Goldstein,
Marek Marczykowski-Górecki, Jan Beulich,
Roger Pau Monné, Teddy Astie, Daniel P . Smith,
Frediano Ziglio
... but keep it in .init.text for xen.gz
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
---
CC: Anthony PERARD <anthony.perard@vates.tech>
CC: Stefano Stabellini <sstabellini@kernel.org>
CC: Michal Orzel <michal.orzel@amd.com>
CC: Doug Goldstein <cardoe@cardoe.com>
CC: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
CC: Jan Beulich <jbeulich@suse.com>
CC: Roger Pau Monné <roger@xenproject.org>
CC: Teddy Astie <teddy.astie@vates.tech>
CC: Daniel P. Smith <dpsmith@apertussolutions.com>
CC: Frediano Ziglio <freddy77@gmail.com>
In an ideal world, we'd remove all xen.efi writes into the trampoline while
it's part of the Xen image. Two (trampoline_efer, trampoline_xen_phys_start)
are easy to fix. Applying relocations is doable (requires coordinated effort
with the MB2 path), but EDID is problem write. EDID needs to be written
before EBS, but the trampoline cannot be placed prior to EBS in all cases.
It isn't completely ideal to use "a" rather than "ax" or "aw" but it is
necessary given that head.S is built only once. It means that the trampoline
is only disassemblable in xen-syms, not head.o.
I admit that this justification is getting a little flimsy, yet I do
disassemble the trampoline on a concerningly frequent basis.
---
xen/arch/x86/boot/head.S | 14 +++++++++++++-
xen/arch/x86/xen.lds.S | 6 ++++++
2 files changed, 19 insertions(+), 1 deletion(-)
diff --git a/xen/arch/x86/boot/head.S b/xen/arch/x86/boot/head.S
index 981f262b5ec4..3c396cd952c3 100644
--- a/xen/arch/x86/boot/head.S
+++ b/xen/arch/x86/boot/head.S
@@ -711,7 +711,19 @@ trampoline_setup:
/* Jump into the relocated trampoline. */
lret
- .section .init.text, "ax", @progbits
+ /*
+ * In an ideal world, the trampoline would live in .init.text, as it
+ * is necessary to disassemble during development.
+ *
+ * However, xen.efi writes into the trampoline while it's part of the
+ * main Xen image. xen.efi needs to be StrictNX compatible
+ * (i.e. writable sections must not be executable), so must have the
+ * trampoline in a data section.
+ *
+ * Put the trampoline in a dedicated section so the final link can
+ * place it appropriately.
+ */
+ .section .init.trampoline, "a", @progbits
ENTRY(trampoline_start)
#include "trampoline.S"
ENTRY(trampoline_end)
diff --git a/xen/arch/x86/xen.lds.S b/xen/arch/x86/xen.lds.S
index 888d5293f3d6..cef3d404a1a8 100644
--- a/xen/arch/x86/xen.lds.S
+++ b/xen/arch/x86/xen.lds.S
@@ -200,6 +200,9 @@ SECTIONS
_sinittext = .;
*(.init.multiboot)
*(.init.text)
+#ifndef EFI /* Non-EFI wants the trampoline in .init.text for disassembly. */
+ *(.init.trampoline)
+#endif
*(.text.startup)
_einittext = .;
/*
@@ -232,6 +235,9 @@ SECTIONS
*(.init.data.multiboot)
*(.init.data)
+#ifdef EFI /* EFI needs the trampoline in .init.data for StrictNX compatibility. */
+ *(.init.trampoline)
+#endif
*(.init.data.rel)
*(.init.data.rel.*)
. = ALIGN(4);
--
2.39.5
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 3/4] x86/efi: Split .init section to satisfy Microsoft UEFI signing requirements
2026-11-26 21:03 [PATCH 0/4] CI: Add an EFI/StrictNX test Andrew Cooper
2026-11-26 21:03 ` [PATCH 1/4] CI: Update Fedora to 45 Andrew Cooper
2026-11-26 21:03 ` [PATCH 2/4] x86/efi: Move the trampoline into .init.data for EFI builds Andrew Cooper
@ 2026-11-26 21:03 ` Andrew Cooper
2026-11-30 9:41 ` Jan Beulich
2026-11-26 21:03 ` [PATCH 4/4] CI: Add an EFI/StrictNX test Andrew Cooper
3 siblings, 1 reply; 12+ messages in thread
From: Andrew Cooper @ 2026-11-26 21:03 UTC (permalink / raw)
To: Xen-devel
Cc: Anthony PERARD, Stefano Stabellini, Michal Orzel, Doug Goldstein,
Marek Marczykowski-Górecki, Jan Beulich,
Roger Pau Monné, Teddy Astie, Daniel P . Smith,
Frediano Ziglio
From: Frediano Ziglio <frediano.ziglio@citrix.com>
Since 2022, Microsoft require that sections are not both writable and
executable, in order to be able to apply W^X restrictions.
Xen specifies SectionAlignment=2M, which technically requires that all
sections have such alignment. For now, only separate code and data sections
in this way. This is good enough to get an OVMF based StrictNX test working
in CI.
In the longterm Xen needs to be reworked to use SectionAlignment=4k, which
will allow us to become fully compliant without more than doubling the size of
Xen in memory.
Link: https://techcommunity.microsoft.com/blog/hardware-dev-center/updated-microsoft-uefi-signing-requirements/1062916
Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
Acked-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
---
CC: Anthony PERARD <anthony.perard@vates.tech>
CC: Stefano Stabellini <sstabellini@kernel.org>
CC: Michal Orzel <michal.orzel@amd.com>
CC: Doug Goldstein <cardoe@cardoe.com>
CC: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
CC: Jan Beulich <jbeulich@suse.com>
CC: Roger Pau Monné <roger@xenproject.org>
CC: Teddy Astie <teddy.astie@vates.tech>
CC: Daniel P. Smith <dpsmith@apertussolutions.com>
CC: Frediano Ziglio <freddy77@gmail.com>
This reverts part of commit 1308f0170c1f ("x86/EFI: warn about r/o sections
requiring relocations"), following the work to ensure that Xen does not write
into read-only sections.
---
xen/arch/x86/xen.lds.S | 19 +++++++++++--------
1 file changed, 11 insertions(+), 8 deletions(-)
diff --git a/xen/arch/x86/xen.lds.S b/xen/arch/x86/xen.lds.S
index cef3d404a1a8..474cdd95c9e8 100644
--- a/xen/arch/x86/xen.lds.S
+++ b/xen/arch/x86/xen.lds.S
@@ -192,11 +192,7 @@ SECTIONS
__2M_init_start = .; /* Start of 2M superpages, mapped RWX (boot only). */
. = ALIGN(PAGE_SIZE); /* Init code and data */
__init_begin = .;
-#ifdef EFI /* EFI wants to merge all of .init.* ELF doesn't. */
- DECL_SECTION(.init) {
-#else
DECL_SECTION(.init.text) {
-#endif
_sinittext = .;
*(.init.multiboot)
*(.init.text)
@@ -212,12 +208,19 @@ SECTIONS
*/
*(.altinstr_replacement)
-#ifdef EFI /* EFI wants to merge all of .init.* ELF doesn't. */
- . = ALIGN(SMP_CACHE_BYTES);
-#else
} PHDR(text)
- DECL_SECTION(.init.data) {
+
+#ifdef EFI
+ /*
+ * Xen.efi specifies SectionAlignment=2M, allowing it to be constructed with
+ * superpages. StrictNX requires code sections to be non-writable, so
+ * .init.data must not share the same superpage.
+ *
+ * TODO: Rework Xen to use SectionAlignment=4k.
+ */
+ . = ALIGN(SECTION_ALIGN);
#endif
+ DECL_SECTION(.init.data) {
*(.init.bss.stack_aligned)
*(.init.data.page_aligned)
--
2.39.5
^ permalink raw reply related [flat|nested] 12+ messages in thread
* [PATCH 4/4] CI: Add an EFI/StrictNX test
2026-11-26 21:03 [PATCH 0/4] CI: Add an EFI/StrictNX test Andrew Cooper
` (2 preceding siblings ...)
2026-11-26 21:03 ` [PATCH 3/4] x86/efi: Split .init section to satisfy Microsoft UEFI signing requirements Andrew Cooper
@ 2026-11-26 21:03 ` Andrew Cooper
2026-11-30 20:10 ` Stefano Stabellini
3 siblings, 1 reply; 12+ messages in thread
From: Andrew Cooper @ 2026-11-26 21:03 UTC (permalink / raw)
To: Xen-devel
Cc: Anthony PERARD, Stefano Stabellini, Michal Orzel, Doug Goldstein,
Marek Marczykowski-Górecki, Jan Beulich,
Roger Pau Monné, Teddy Astie, Daniel P . Smith,
Frediano Ziglio
From: Roger Pau Monné <roger.pau@citrix.com>
While most of our testing of this nature happens in a Debian container,
Debian's strictnx build of OVMF is buggy at the time of writing. See:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1154178
Fedora have non-strict StrictNX enabled in their SecureBoot build of OVMF, but
by default it prints a warning on failure and then relaxes permissions. It
can be turned into strict StrictNX mode with an extra -fw_cfg setting, making
it actually usable in a CI scenario.
Unlike Debian, Fedora has no equivalent of the enrolled snake-oil key, so for
simplicity sake just turn off SecureBoot for now.
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
---
CC: Anthony PERARD <anthony.perard@vates.tech>
CC: Stefano Stabellini <sstabellini@kernel.org>
CC: Michal Orzel <michal.orzel@amd.com>
CC: Doug Goldstein <cardoe@cardoe.com>
CC: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
CC: Jan Beulich <jbeulich@suse.com>
CC: Roger Pau Monné <roger@xenproject.org>
CC: Teddy Astie <teddy.astie@vates.tech>
CC: Daniel P. Smith <dpsmith@apertussolutions.com>
CC: Frediano Ziglio <freddy77@gmail.com>
As Fedora 45 is new this series, I've already deployed the container with
these additions.
---
automation/build/fedora/45-x86_64.dockerfile | 7 ++
automation/gitlab-ci/test.yaml | 9 +++
.../scripts/include/xtf-x86_64-efi-strictnx | 64 +++++++++++++++++++
3 files changed, 80 insertions(+)
create mode 100644 automation/scripts/include/xtf-x86_64-efi-strictnx
diff --git a/automation/build/fedora/45-x86_64.dockerfile b/automation/build/fedora/45-x86_64.dockerfile
index 5a1764c7ee55..e470f19eedb4 100644
--- a/automation/build/fedora/45-x86_64.dockerfile
+++ b/automation/build/fedora/45-x86_64.dockerfile
@@ -67,6 +67,13 @@ RUN <<EOF
glib2-devel
pixman-devel
ninja-build
+
+ # for test phase, qemu-* jobs
+ edk2-ovmf
+ expect
+ python3-virt-firmware
+ qemu-img
+ qemu-system-x86
)
dnf -y --setopt=install_weak_deps=False install "${DEPS[@]}"
diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml
index cf4b7ed416b0..cfde4d05c6e8 100644
--- a/automation/gitlab-ci/test.yaml
+++ b/automation/gitlab-ci/test.yaml
@@ -783,6 +783,15 @@ qemu-smoke-x86_64-gcc-efi-uki:
needs:
- debian-13-x86_64-gcc-debug
+qemu-smoke-x86_64-gcc-efi-strictnx:
+ extends: .qemu-smoke-x86_64
+ variables:
+ CONTAINER: fedora:45-x86_64
+ script:
+ - ./automation/scripts/qemu-xtf.sh x86_64-efi-strictnx pv64 example 2>&1 | tee ${LOGFILE}
+ needs:
+ - fedora-45-x86_64-gcc-debug
+
qemu-xtf-argo-x86_64-gcc-debug:
extends: .qemu-smoke-x86_64
variables:
diff --git a/automation/scripts/include/xtf-x86_64-efi-strictnx b/automation/scripts/include/xtf-x86_64-efi-strictnx
new file mode 100644
index 000000000000..49a87c7dd91f
--- /dev/null
+++ b/automation/scripts/include/xtf-x86_64-efi-strictnx
@@ -0,0 +1,64 @@
+#!/bin/bash
+#
+# XTF test utilities (x86_64, EFI).
+#
+
+# Arch-specific environment overrides.
+function xtf_arch_prepare()
+{
+ export FW_PREFIX="${FW_PREFIX:-/usr/share/edk2/ovmf}"
+ export QEMU_PREFIX="${QEMU_PREFIX:-}"
+ export XEN_BINARY="${XEN_BINARY:-${WORKDIR}/xen.efi}"
+ export XEN_CMDLINE="${XEN_CMDLINE:-loglvl=all noreboot console_timestamps=boot console=com1}"
+ export XTF_SRC_BRANCH="${XTF_SRC_BRANCH:-master}"
+ export XTF_SRC_URI="${XTF_SRC_URI:-https://xenbits.xen.org/git-http/xtf.git}"
+ export XTF_SRC_VARIANTS="hvm64 pv64"
+}
+
+# Perform arch-specific XTF environment setup.
+function xtf_arch_setup()
+{
+ local esp_dir="${WORKDIR}/boot-esp"
+ local efi_dir="${esp_dir}/EFI/BOOT"
+
+ # Generate EFI boot environment
+ mkdir -p ${efi_dir}
+ cp ${XEN_BINARY} ${efi_dir}/BOOTX64.EFI
+ cp ${XTF_BINARY} ${efi_dir}/kernel
+
+ cat > ${efi_dir}/BOOTX64.cfg <<EOF
+[global]
+default=test
+
+[test]
+options=${XEN_CMDLINE}
+kernel=kernel
+EOF
+
+ # Fedora has StrictNX built into in the SecureBoot image, but by default
+ # it is permissive and only prints a warning. It's made strict by an
+ # extra -fw_cfg setting.
+ local ovmf_code=${FW_PREFIX}/OVMF_CODE_4M.secboot.qcow2
+ local ovmf_vars=${FW_PREFIX}/OVMF_VARS_4M.secboot.qcow2
+ local ovmf_format=qcow2
+
+ cp $ovmf_code ${WORKDIR}/OVMF_CODE
+ cp $ovmf_vars ${WORKDIR}/OVMF_VARS
+
+ # Xen.efi isn't signed, so turn SecureBoot off.
+ virt-fw-vars --inplace ${WORKDIR}/OVMF_VARS --set-false SecureBootEnable
+
+ export TEST_CMD="${QEMU_PREFIX}qemu-system-x86_64 \
+ -no-reboot \
+ -nographic \
+ -monitor none \
+ -serial stdio \
+ -m 2048 \
+ -smp 2 \
+ -M q35,kernel-irqchip=split \
+ -drive if=pflash,format=${ovmf_format},readonly=on,file=${WORKDIR}/OVMF_CODE \
+ -drive if=pflash,format=${ovmf_format},file=${WORKDIR}/OVMF_VARS \
+ -drive file=fat:rw:${esp_dir},media=disk,index=0,format=raw \
+ -fw_cfg name=opt/org.tianocore/StrictNX,string=yes \
+ "
+}
--
2.39.5
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH 2/4] x86/efi: Move the trampoline into .init.data for EFI builds
2026-11-26 21:03 ` [PATCH 2/4] x86/efi: Move the trampoline into .init.data for EFI builds Andrew Cooper
@ 2026-11-30 9:34 ` Jan Beulich
2026-11-30 17:04 ` [PATCH v2 " Andrew Cooper
1 sibling, 0 replies; 12+ messages in thread
From: Jan Beulich @ 2026-11-30 9:34 UTC (permalink / raw)
To: Andrew Cooper
Cc: Anthony PERARD, Stefano Stabellini, Michal Orzel, Doug Goldstein,
Marek Marczykowski-Górecki, Roger Pau Monné,
Teddy Astie, Daniel P . Smith, Frediano Ziglio, Xen-devel
On 26.11.2026 22:03, Andrew Cooper wrote:
> ... but keep it in .init.text for xen.gz
Imo quite a bit of what you say further down would want putting here, to
understand why what is being done is done this particular way.
> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
> ---
> CC: Anthony PERARD <anthony.perard@vates.tech>
> CC: Stefano Stabellini <sstabellini@kernel.org>
> CC: Michal Orzel <michal.orzel@amd.com>
> CC: Doug Goldstein <cardoe@cardoe.com>
> CC: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
> CC: Jan Beulich <jbeulich@suse.com>
> CC: Roger Pau Monné <roger@xenproject.org>
> CC: Teddy Astie <teddy.astie@vates.tech>
> CC: Daniel P. Smith <dpsmith@apertussolutions.com>
> CC: Frediano Ziglio <freddy77@gmail.com>
>
> In an ideal world, we'd remove all xen.efi writes into the trampoline while
> it's part of the Xen image. Two (trampoline_efer, trampoline_xen_phys_start)
> are easy to fix. Applying relocations is doable (requires coordinated effort
> with the MB2 path), but EDID is problem write. EDID needs to be written
> before EBS, but the trampoline cannot be placed prior to EBS in all cases.
Same for EDD afaict. However, for both there's no strict need for EFI boot
code to write directly into the trampoline. We could write into some staging
area first. We could even leverage the new BRK allocator to obtain the needed
space (perhaps relevant more for EDD than for EDID).
> It isn't completely ideal to use "a" rather than "ax" or "aw" but it is
> necessary given that head.S is built only once. It means that the trampoline
> is only disassemblable in xen-syms, not head.o.
And disassembling xen-syms is quite a bit less desirable: Relocations are
gone, making the output harder to interpret. A disassembler a little more
intelligent than GNU objdump's may also suffer more from constraining the
ability to disassemble to just xen-syms. Plus in case of linking problems you
wouldn't have xen-syms available in the first place.
> I admit that this justification is getting a little flimsy, yet I do
> disassemble the trampoline on a concerningly frequent basis.
No, I'm fully with you - this needs to be possible to disassemble we well as
we can manage. It's sad that in x86 there are no markers to identify 16-/32-/
64-bit code boundaries (or else disassembly output here would be yet easier
to manage).
> --- a/xen/arch/x86/boot/head.S
> +++ b/xen/arch/x86/boot/head.S
> @@ -711,7 +711,19 @@ trampoline_setup:
> /* Jump into the relocated trampoline. */
> lret
>
> - .section .init.text, "ax", @progbits
> + /*
> + * In an ideal world, the trampoline would live in .init.text, as it
> + * is necessary to disassemble during development.
> + *
> + * However, xen.efi writes into the trampoline while it's part of the
> + * main Xen image. xen.efi needs to be StrictNX compatible
> + * (i.e. writable sections must not be executable), so must have the
> + * trampoline in a data section.
> + *
> + * Put the trampoline in a dedicated section so the final link can
> + * place it appropriately.
> + */
> + .section .init.trampoline, "a", @progbits
In case the double copying isn't an option: Linux used to link head.o
separately iirc. We could move to such a model, using two slightly different
objects for xen-syms and xen.efi. Which would then also ease e.g. excluding
of multiboot data from xen.efi.
Jan
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 3/4] x86/efi: Split .init section to satisfy Microsoft UEFI signing requirements
2026-11-26 21:03 ` [PATCH 3/4] x86/efi: Split .init section to satisfy Microsoft UEFI signing requirements Andrew Cooper
@ 2026-11-30 9:41 ` Jan Beulich
2026-11-30 17:07 ` Andrew Cooper
0 siblings, 1 reply; 12+ messages in thread
From: Jan Beulich @ 2026-11-30 9:41 UTC (permalink / raw)
To: Andrew Cooper
Cc: Anthony PERARD, Stefano Stabellini, Michal Orzel, Doug Goldstein,
Marek Marczykowski-Górecki, Roger Pau Monné,
Teddy Astie, Daniel P . Smith, Frediano Ziglio, Xen-devel
On 26.11.2026 22:03, Andrew Cooper wrote:
> From: Frediano Ziglio <frediano.ziglio@citrix.com>
>
> Since 2022, Microsoft require that sections are not both writable and
> executable, in order to be able to apply W^X restrictions.
>
> Xen specifies SectionAlignment=2M, which technically requires that all
> sections have such alignment. For now, only separate code and data sections
> in this way. This is good enough to get an OVMF based StrictNX test working
> in CI.
>
> In the longterm Xen needs to be reworked to use SectionAlignment=4k, which
> will allow us to become fully compliant without more than doubling the size of
> Xen in memory.
>
> Link: https://techcommunity.microsoft.com/blog/hardware-dev-center/updated-microsoft-uefi-signing-requirements/1062916
> Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
> Acked-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
> Acked-by: Jan Beulich <jbeulich@suse.com>
Doesn't this require your own S-o-b now as well?
> ---
> CC: Anthony PERARD <anthony.perard@vates.tech>
> CC: Stefano Stabellini <sstabellini@kernel.org>
> CC: Michal Orzel <michal.orzel@amd.com>
> CC: Doug Goldstein <cardoe@cardoe.com>
> CC: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
> CC: Jan Beulich <jbeulich@suse.com>
> CC: Roger Pau Monné <roger@xenproject.org>
> CC: Teddy Astie <teddy.astie@vates.tech>
> CC: Daniel P. Smith <dpsmith@apertussolutions.com>
> CC: Frediano Ziglio <freddy77@gmail.com>
>
> This reverts part of commit 1308f0170c1f ("x86/EFI: warn about r/o sections
> requiring relocations"), following the work to ensure that Xen does not write
> into read-only sections.
Imo this also wants to be part of the description. Talking of r/o sections, you
may further want to explicitly mention that .init.rodata* (need to) remain part
of .init.data, for the reason that caused 1308f0170c1f to be put together.
Jan
^ permalink raw reply [flat|nested] 12+ messages in thread
* [PATCH v2 2/4] x86/efi: Move the trampoline into .init.data for EFI builds
2026-11-26 21:03 ` [PATCH 2/4] x86/efi: Move the trampoline into .init.data for EFI builds Andrew Cooper
2026-11-30 9:34 ` Jan Beulich
@ 2026-11-30 17:04 ` Andrew Cooper
2026-12-01 7:49 ` Jan Beulich
1 sibling, 1 reply; 12+ messages in thread
From: Andrew Cooper @ 2026-11-30 17:04 UTC (permalink / raw)
To: Xen-devel
Cc: Andrew Cooper, Anthony PERARD, Stefano Stabellini, Michal Orzel,
Doug Goldstein, Marek Marczykowski-Górecki, Jan Beulich,
Roger Pau Monné, Teddy Astie, Daniel P . Smith,
Frediano Ziglio
... but keep it in .init.text for xen.gz
In an ideal world, we'd remove all xen.efi writes into the trampoline while
it's part of the Xen image. Two (trampoline_efer, trampoline_xen_phys_start)
are easy to fix. Applying relocations later is doable (requires coordinated
effort with the MB2 path), but EDID/EDD are problematic. Both needs to be
written before EBS, but the trampoline cannot be placed prior to EBS in all
cases.
Several of these have plans to be addressed, but require other cleanup first.
Leave a TODO to indicate our intent to move this all back into .init.text
eventually.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
---
CC: Anthony PERARD <anthony.perard@vates.tech>
CC: Stefano Stabellini <sstabellini@kernel.org>
CC: Michal Orzel <michal.orzel@amd.com>
CC: Doug Goldstein <cardoe@cardoe.com>
CC: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
CC: Jan Beulich <jbeulich@suse.com>
CC: Roger Pau Monné <roger@xenproject.org>
CC: Teddy Astie <teddy.astie@vates.tech>
CC: Daniel P. Smith <dpsmith@apertussolutions.com>
CC: Frediano Ziglio <freddy77@gmail.com>
v2:
* Adjust commit message and comment per discussion on the x86 maintainers
call.
---
xen/arch/x86/boot/head.S | 17 ++++++++++++++++-
xen/arch/x86/xen.lds.S | 6 ++++++
2 files changed, 22 insertions(+), 1 deletion(-)
diff --git a/xen/arch/x86/boot/head.S b/xen/arch/x86/boot/head.S
index 981f262b5ec4..655ab6932def 100644
--- a/xen/arch/x86/boot/head.S
+++ b/xen/arch/x86/boot/head.S
@@ -711,7 +711,22 @@ trampoline_setup:
/* Jump into the relocated trampoline. */
lret
- .section .init.text, "ax", @progbits
+ /*
+ * In an ideal world, the trampoline would live in .init.text, as it
+ * is necessary to disassemble during development.
+ *
+ * However, xen.efi writes into the trampoline while it's part of the
+ * main Xen image. Xen.efi needs to be StrictNX compatible
+ * (i.e. writable sections must not be executable), so must have the
+ * trampoline in a data section.
+ *
+ * Put the trampoline in a dedicated section so the final link can
+ * place it appropriately.
+ *
+ * TODO: Rework xen.efi to not write into the trampoline while it is
+ * part of the main Xen image.
+ */
+ .section .init.trampoline, "a", @progbits
ENTRY(trampoline_start)
#include "trampoline.S"
ENTRY(trampoline_end)
diff --git a/xen/arch/x86/xen.lds.S b/xen/arch/x86/xen.lds.S
index 888d5293f3d6..cef3d404a1a8 100644
--- a/xen/arch/x86/xen.lds.S
+++ b/xen/arch/x86/xen.lds.S
@@ -200,6 +200,9 @@ SECTIONS
_sinittext = .;
*(.init.multiboot)
*(.init.text)
+#ifndef EFI /* Non-EFI wants the trampoline in .init.text for disassembly. */
+ *(.init.trampoline)
+#endif
*(.text.startup)
_einittext = .;
/*
@@ -232,6 +235,9 @@ SECTIONS
*(.init.data.multiboot)
*(.init.data)
+#ifdef EFI /* EFI needs the trampoline in .init.data for StrictNX compatibility. */
+ *(.init.trampoline)
+#endif
*(.init.data.rel)
*(.init.data.rel.*)
. = ALIGN(4);
--
2.39.5
^ permalink raw reply related [flat|nested] 12+ messages in thread
* Re: [PATCH 3/4] x86/efi: Split .init section to satisfy Microsoft UEFI signing requirements
2026-11-30 9:41 ` Jan Beulich
@ 2026-11-30 17:07 ` Andrew Cooper
0 siblings, 0 replies; 12+ messages in thread
From: Andrew Cooper @ 2026-11-30 17:07 UTC (permalink / raw)
To: Jan Beulich
Cc: Andrew Cooper, Anthony PERARD, Stefano Stabellini, Michal Orzel,
Doug Goldstein, Marek Marczykowski-Górecki,
Roger Pau Monné, Teddy Astie, Daniel P . Smith,
Frediano Ziglio, Xen-devel
On 30/11/2026 9:41 am, Jan Beulich wrote:
> On 26.11.2026 22:03, Andrew Cooper wrote:
>> From: Frediano Ziglio <frediano.ziglio@citrix.com>
>>
>> Since 2022, Microsoft require that sections are not both writable and
>> executable, in order to be able to apply W^X restrictions.
>>
>> Xen specifies SectionAlignment=2M, which technically requires that all
>> sections have such alignment. For now, only separate code and data sections
>> in this way. This is good enough to get an OVMF based StrictNX test working
>> in CI.
>>
>> In the longterm Xen needs to be reworked to use SectionAlignment=4k, which
>> will allow us to become fully compliant without more than doubling the size of
>> Xen in memory.
>>
>> Link: https://techcommunity.microsoft.com/blog/hardware-dev-center/updated-microsoft-uefi-signing-requirements/1062916
>> Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
>> Acked-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
>> Acked-by: Jan Beulich <jbeulich@suse.com>
> Doesn't this require your own S-o-b now as well?
Perhaps.
>
>> ---
>> CC: Anthony PERARD <anthony.perard@vates.tech>
>> CC: Stefano Stabellini <sstabellini@kernel.org>
>> CC: Michal Orzel <michal.orzel@amd.com>
>> CC: Doug Goldstein <cardoe@cardoe.com>
>> CC: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
>> CC: Jan Beulich <jbeulich@suse.com>
>> CC: Roger Pau Monné <roger@xenproject.org>
>> CC: Teddy Astie <teddy.astie@vates.tech>
>> CC: Daniel P. Smith <dpsmith@apertussolutions.com>
>> CC: Frediano Ziglio <freddy77@gmail.com>
>>
>> This reverts part of commit 1308f0170c1f ("x86/EFI: warn about r/o sections
>> requiring relocations"), following the work to ensure that Xen does not write
>> into read-only sections.
> Imo this also wants to be part of the description. Talking of r/o sections, you
> may further want to explicitly mention that .init.rodata* (need to) remain part
> of .init.data, for the reason that caused 1308f0170c1f to be put together.
I'll put this adjusted form into the commit message.
This undoes the merging introduced in commit 1308f0170c1f ("x86/EFI:
warn about r/o sections requiring relocations") by fixing the problem a
different way; by having Xen not write into read-only sections.
~Andrew
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 4/4] CI: Add an EFI/StrictNX test
2026-11-26 21:03 ` [PATCH 4/4] CI: Add an EFI/StrictNX test Andrew Cooper
@ 2026-11-30 20:10 ` Stefano Stabellini
0 siblings, 0 replies; 12+ messages in thread
From: Stefano Stabellini @ 2026-11-30 20:10 UTC (permalink / raw)
To: Andrew Cooper
Cc: Xen-devel, Anthony PERARD, Stefano Stabellini, Michal Orzel,
Doug Goldstein, Marek Marczykowski-Górecki, Jan Beulich,
Roger Pau Monné, Teddy Astie, Daniel P . Smith,
Frediano Ziglio
[-- Attachment #1: Type: text/plain, Size: 5565 bytes --]
On Thu, 26 Nov 2026, Andrew Cooper wrote:
> From: Roger Pau Monné <roger.pau@citrix.com>
>
> While most of our testing of this nature happens in a Debian container,
> Debian's strictnx build of OVMF is buggy at the time of writing. See:
>
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1154178
>
> Fedora have non-strict StrictNX enabled in their SecureBoot build of OVMF, but
> by default it prints a warning on failure and then relaxes permissions. It
> can be turned into strict StrictNX mode with an extra -fw_cfg setting, making
> it actually usable in a CI scenario.
>
> Unlike Debian, Fedora has no equivalent of the enrolled snake-oil key, so for
> simplicity sake just turn off SecureBoot for now.
>
> Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
> ---
> CC: Anthony PERARD <anthony.perard@vates.tech>
> CC: Stefano Stabellini <sstabellini@kernel.org>
> CC: Michal Orzel <michal.orzel@amd.com>
> CC: Doug Goldstein <cardoe@cardoe.com>
> CC: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
> CC: Jan Beulich <jbeulich@suse.com>
> CC: Roger Pau Monné <roger@xenproject.org>
> CC: Teddy Astie <teddy.astie@vates.tech>
> CC: Daniel P. Smith <dpsmith@apertussolutions.com>
> CC: Frediano Ziglio <freddy77@gmail.com>
>
> As Fedora 45 is new this series, I've already deployed the container with
> these additions.
> ---
> automation/build/fedora/45-x86_64.dockerfile | 7 ++
> automation/gitlab-ci/test.yaml | 9 +++
> .../scripts/include/xtf-x86_64-efi-strictnx | 64 +++++++++++++++++++
> 3 files changed, 80 insertions(+)
> create mode 100644 automation/scripts/include/xtf-x86_64-efi-strictnx
>
> diff --git a/automation/build/fedora/45-x86_64.dockerfile b/automation/build/fedora/45-x86_64.dockerfile
> index 5a1764c7ee55..e470f19eedb4 100644
> --- a/automation/build/fedora/45-x86_64.dockerfile
> +++ b/automation/build/fedora/45-x86_64.dockerfile
> @@ -67,6 +67,13 @@ RUN <<EOF
> glib2-devel
> pixman-devel
> ninja-build
> +
> + # for test phase, qemu-* jobs
> + edk2-ovmf
> + expect
> + python3-virt-firmware
> + qemu-img
> + qemu-system-x86
> )
>
> dnf -y --setopt=install_weak_deps=False install "${DEPS[@]}"
> diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml
> index cf4b7ed416b0..cfde4d05c6e8 100644
> --- a/automation/gitlab-ci/test.yaml
> +++ b/automation/gitlab-ci/test.yaml
> @@ -783,6 +783,15 @@ qemu-smoke-x86_64-gcc-efi-uki:
> needs:
> - debian-13-x86_64-gcc-debug
>
> +qemu-smoke-x86_64-gcc-efi-strictnx:
> + extends: .qemu-smoke-x86_64
> + variables:
> + CONTAINER: fedora:45-x86_64
> + script:
> + - ./automation/scripts/qemu-xtf.sh x86_64-efi-strictnx pv64 example 2>&1 | tee ${LOGFILE}
> + needs:
> + - fedora-45-x86_64-gcc-debug
> +
> qemu-xtf-argo-x86_64-gcc-debug:
> extends: .qemu-smoke-x86_64
> variables:
> diff --git a/automation/scripts/include/xtf-x86_64-efi-strictnx b/automation/scripts/include/xtf-x86_64-efi-strictnx
> new file mode 100644
> index 000000000000..49a87c7dd91f
> --- /dev/null
> +++ b/automation/scripts/include/xtf-x86_64-efi-strictnx
> @@ -0,0 +1,64 @@
> +#!/bin/bash
> +#
> +# XTF test utilities (x86_64, EFI).
> +#
> +
> +# Arch-specific environment overrides.
> +function xtf_arch_prepare()
> +{
> + export FW_PREFIX="${FW_PREFIX:-/usr/share/edk2/ovmf}"
> + export QEMU_PREFIX="${QEMU_PREFIX:-}"
> + export XEN_BINARY="${XEN_BINARY:-${WORKDIR}/xen.efi}"
> + export XEN_CMDLINE="${XEN_CMDLINE:-loglvl=all noreboot console_timestamps=boot console=com1}"
> + export XTF_SRC_BRANCH="${XTF_SRC_BRANCH:-master}"
> + export XTF_SRC_URI="${XTF_SRC_URI:-https://xenbits.xen.org/git-http/xtf.git}"
> + export XTF_SRC_VARIANTS="hvm64 pv64"
> +}
> +
> +# Perform arch-specific XTF environment setup.
> +function xtf_arch_setup()
> +{
> + local esp_dir="${WORKDIR}/boot-esp"
> + local efi_dir="${esp_dir}/EFI/BOOT"
> +
> + # Generate EFI boot environment
> + mkdir -p ${efi_dir}
> + cp ${XEN_BINARY} ${efi_dir}/BOOTX64.EFI
> + cp ${XTF_BINARY} ${efi_dir}/kernel
> +
> + cat > ${efi_dir}/BOOTX64.cfg <<EOF
> +[global]
> +default=test
> +
> +[test]
> +options=${XEN_CMDLINE}
> +kernel=kernel
> +EOF
> +
> + # Fedora has StrictNX built into in the SecureBoot image, but by default
> + # it is permissive and only prints a warning. It's made strict by an
> + # extra -fw_cfg setting.
> + local ovmf_code=${FW_PREFIX}/OVMF_CODE_4M.secboot.qcow2
> + local ovmf_vars=${FW_PREFIX}/OVMF_VARS_4M.secboot.qcow2
> + local ovmf_format=qcow2
> +
> + cp $ovmf_code ${WORKDIR}/OVMF_CODE
> + cp $ovmf_vars ${WORKDIR}/OVMF_VARS
> +
> + # Xen.efi isn't signed, so turn SecureBoot off.
> + virt-fw-vars --inplace ${WORKDIR}/OVMF_VARS --set-false SecureBootEnable
> +
> + export TEST_CMD="${QEMU_PREFIX}qemu-system-x86_64 \
> + -no-reboot \
> + -nographic \
> + -monitor none \
> + -serial stdio \
> + -m 2048 \
> + -smp 2 \
> + -M q35,kernel-irqchip=split \
> + -drive if=pflash,format=${ovmf_format},readonly=on,file=${WORKDIR}/OVMF_CODE \
> + -drive if=pflash,format=${ovmf_format},file=${WORKDIR}/OVMF_VARS \
> + -drive file=fat:rw:${esp_dir},media=disk,index=0,format=raw \
> + -fw_cfg name=opt/org.tianocore/StrictNX,string=yes \
> + "
> +}
> --
> 2.39.5
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH 1/4] CI: Update Fedora to 45
2026-11-26 21:03 ` [PATCH 1/4] CI: Update Fedora to 45 Andrew Cooper
@ 2026-11-30 20:10 ` Stefano Stabellini
0 siblings, 0 replies; 12+ messages in thread
From: Stefano Stabellini @ 2026-11-30 20:10 UTC (permalink / raw)
To: Andrew Cooper
Cc: Xen-devel, Anthony PERARD, Stefano Stabellini, Michal Orzel,
Doug Goldstein, Marek Marczykowski-Górecki, Jan Beulich,
Roger Pau Monné, Teddy Astie, Daniel P . Smith,
Frediano Ziglio
[-- Attachment #1: Type: text/plain, Size: 3372 bytes --]
On Thu, 26 Nov 2026, Andrew Cooper wrote:
> Fedora 43 is about to hit EoL.
>
> This also gets us a container with binutils >= 2.46, which is going to be
> needed for EFI/StrictNX testing.
>
> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
> ---
> CC: Anthony PERARD <anthony.perard@vates.tech>
> CC: Stefano Stabellini <sstabellini@kernel.org>
> CC: Michal Orzel <michal.orzel@amd.com>
> CC: Doug Goldstein <cardoe@cardoe.com>
> CC: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
> CC: Jan Beulich <jbeulich@suse.com>
> CC: Roger Pau Monné <roger@xenproject.org>
> CC: Teddy Astie <teddy.astie@vates.tech>
> CC: Daniel P. Smith <dpsmith@apertussolutions.com>
> CC: Frediano Ziglio <freddy77@gmail.com>
>
> I have already deployed this container, including the additional change from
> patch 4.
> ---
> .../fedora/{43-x86_64.dockerfile => 45-x86_64.dockerfile} | 2 +-
> automation/gitlab-ci/build.yaml | 8 ++++----
> automation/scripts/containerize | 2 +-
> 3 files changed, 6 insertions(+), 6 deletions(-)
> rename automation/build/fedora/{43-x86_64.dockerfile => 45-x86_64.dockerfile} (97%)
>
> diff --git a/automation/build/fedora/43-x86_64.dockerfile b/automation/build/fedora/45-x86_64.dockerfile
> similarity index 97%
> rename from automation/build/fedora/43-x86_64.dockerfile
> rename to automation/build/fedora/45-x86_64.dockerfile
> index 0a2329e2dc37..5a1764c7ee55 100644
> --- a/automation/build/fedora/43-x86_64.dockerfile
> +++ b/automation/build/fedora/45-x86_64.dockerfile
> @@ -1,5 +1,5 @@
> # syntax=docker/dockerfile:1
> -FROM --platform=linux/amd64 fedora:43
> +FROM --platform=linux/amd64 fedora:45
> LABEL maintainer.name="The Xen Project"
> LABEL maintainer.email="xen-devel@lists.xenproject.org"
>
> diff --git a/automation/gitlab-ci/build.yaml b/automation/gitlab-ci/build.yaml
> index 94359febdae2..676009045448 100644
> --- a/automation/gitlab-ci/build.yaml
> +++ b/automation/gitlab-ci/build.yaml
> @@ -619,15 +619,15 @@ debian-13-x86_32-gcc-debug:
> variables:
> CONTAINER: debian:13-x86_32
>
> -fedora-43-x86_64-gcc:
> +fedora-45-x86_64-gcc:
> extends: .gcc-x86_64-build
> variables:
> - CONTAINER: fedora:43-x86_64
> + CONTAINER: fedora:45-x86_64
>
> -fedora-43-x86_64-gcc-debug:
> +fedora-45-x86_64-gcc-debug:
> extends: .gcc-x86_64-build-debug
> variables:
> - CONTAINER: fedora:43-x86_64
> + CONTAINER: fedora:45-x86_64
>
> ubuntu-18.04-x86_64-gcc:
> extends: .gcc-x86_64-build
> diff --git a/automation/scripts/containerize b/automation/scripts/containerize
> index feadd9e82fc4..8a175fcd0b36 100755
> --- a/automation/scripts/containerize
> +++ b/automation/scripts/containerize
> @@ -27,7 +27,7 @@ case "_${CONTAINER}" in
> _alpine) CONTAINER="${BASE}/alpine:3.24-x86_64" ;;
> _alpine-arm64v8) CONTAINER="${BASE}/alpine:3.24-arm64v8" ;;
> _archlinux|_arch) CONTAINER="${BASE}/archlinux:current-x86_64" ;;
> - _fedora) CONTAINER="${BASE}/fedora:43-x86_64";;
> + _fedora) CONTAINER="${BASE}/fedora:45-x86_64";;
> _bullseye-ppc64le) CONTAINER="${BASE}/debian:11-ppc64le" ;;
> _bookworm-ppc64le) CONTAINER="${BASE}/debian:12-ppc64le" ;;
> _trixie-ppc64le) CONTAINER="${BASE}/debian:13-ppc64le" ;;
> --
> 2.39.5
>
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [PATCH v2 2/4] x86/efi: Move the trampoline into .init.data for EFI builds
2026-11-30 17:04 ` [PATCH v2 " Andrew Cooper
@ 2026-12-01 7:49 ` Jan Beulich
0 siblings, 0 replies; 12+ messages in thread
From: Jan Beulich @ 2026-12-01 7:49 UTC (permalink / raw)
To: Andrew Cooper
Cc: Anthony PERARD, Stefano Stabellini, Michal Orzel, Doug Goldstein,
Marek Marczykowski-Górecki, Roger Pau Monné,
Teddy Astie, Daniel P . Smith, Frediano Ziglio, Xen-devel
On 30.11.2026 18:04, Andrew Cooper wrote:
> ... but keep it in .init.text for xen.gz
>
> In an ideal world, we'd remove all xen.efi writes into the trampoline while
> it's part of the Xen image. Two (trampoline_efer, trampoline_xen_phys_start)
> are easy to fix. Applying relocations later is doable (requires coordinated
> effort with the MB2 path), but EDID/EDD are problematic. Both needs to be
> written before EBS, but the trampoline cannot be placed prior to EBS in all
> cases.
>
> Several of these have plans to be addressed, but require other cleanup first.
> Leave a TODO to indicate our intent to move this all back into .init.text
> eventually.
>
> Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
albeit preferably with ...
> --- a/xen/arch/x86/xen.lds.S
> +++ b/xen/arch/x86/xen.lds.S
> @@ -200,6 +200,9 @@ SECTIONS
> _sinittext = .;
> *(.init.multiboot)
> *(.init.text)
> +#ifndef EFI /* Non-EFI wants the trampoline in .init.text for disassembly. */
> + *(.init.trampoline)
> +#endif
> *(.text.startup)
> _einittext = .;
> /*
> @@ -232,6 +235,9 @@ SECTIONS
>
> *(.init.data.multiboot)
> *(.init.data)
> +#ifdef EFI /* EFI needs the trampoline in .init.data for StrictNX compatibility. */
> + *(.init.trampoline)
> +#endif
... the comment here softened some, similarly indicating this is a temporary
measure. As worded it may be unclear whether / when this can be undone. (I.e.
minimally I'd like to see "for now" added.)
Jan
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2026-12-01 7:49 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-26 21:03 [PATCH 0/4] CI: Add an EFI/StrictNX test Andrew Cooper
2026-11-26 21:03 ` [PATCH 1/4] CI: Update Fedora to 45 Andrew Cooper
2026-11-30 20:10 ` Stefano Stabellini
2026-11-26 21:03 ` [PATCH 2/4] x86/efi: Move the trampoline into .init.data for EFI builds Andrew Cooper
2026-11-30 9:34 ` Jan Beulich
2026-11-30 17:04 ` [PATCH v2 " Andrew Cooper
2026-12-01 7:49 ` Jan Beulich
2026-11-26 21:03 ` [PATCH 3/4] x86/efi: Split .init section to satisfy Microsoft UEFI signing requirements Andrew Cooper
2026-11-30 9:41 ` Jan Beulich
2026-11-30 17:07 ` Andrew Cooper
2026-11-26 21:03 ` [PATCH 4/4] CI: Add an EFI/StrictNX test Andrew Cooper
2026-11-30 20:10 ` Stefano Stabellini
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.