Skip to content

[nvidia-jp6] configs: drop CONFIG_XEN from the EVE defconfig - #276

Draft
europaul wants to merge 1 commit into
lf-edge:eve-kernel-arm64-v5.15.136-nvidia-jp6from
europaul:drop-xen/eve-kernel-arm64-v5.15.136-nvidia-jp6
Draft

europaul wants to merge 1 commit into
lf-edge:eve-kernel-arm64-v5.15.136-nvidia-jp6from
europaul:drop-xen/eve-kernel-arm64-v5.15.136-nvidia-jp6

Conversation

@europaul

Copy link
Copy Markdown
Contributor

Description

EVE is removing its Xen hypervisor flavor (HV=xen, pkg/xen, the Xen toolstack and pillar's Xen backend). After that nothing in the EVE rootfs talks to the Xen kernel interfaces any more, so CONFIG_XEN=y is dead weight in the kernel image and extra attack surface (dom0 backends, grant tables, pvcalls, xenbus).

This PR turns CONFIG_XEN off in kernel/kernel-jammy-src/arch/arm64/configs/tegra_eveos_defconfig and regenerates the defconfig with savedefconfig, so every option that depended on Xen falls out consistently instead of being hand-deleted.

Options that were =y only because XEN selected them keep their value and are now listed explicitly in the defconfig (the built kernel does not change for them): CONFIG_PARAVIRT.

Draft until EVE's own Xen removal has landed; merging this earlier would break the HV=xen EVE build on the next kernel bump.

How to test and validate this PR

Expanded the old and the new defconfig to a full .config inside the builder stage of Dockerfile.gcc and diffed them: the only lines that differ are CONFIG_XEN* and the options Xen alone was selecting (listed in the commit message). grep XEN on the new .config shows only # CONFIG_XEN is not set (plus unrelated symbols that merely contain the string, e.g. MMC_SDHCI_XENON).

The regular pr-build workflow on this PR is the build test.

Changelog notes

EVE no longer boots as a Xen guest.

🤖 Generated with Claude Code

EVE is removing its Xen hypervisor flavor (HV=xen, pkg/xen, the Xen
toolstack and pillar's Xen backend). After that nothing in the rootfs
talks to the Xen kernel interfaces: the only /dev/xen and /proc/xen
probes were the hypervisor auto-detect and the Xen-specific init
scripts, which go away with the flavor.

Keeping CONFIG_XEN=y in a KVM-only OS is dead weight in the image and
extra attack surface (dom0 backends, grant tables, pvcalls, xenbus).

The defconfig is regenerated with savedefconfig so dependent options
fall out consistently. Besides CONFIG_XEN_* the expanded .config loses
only SYS_HYPERVISOR, HVC_IRQ and (on 5.10/5.15) PAGE_POOL, which
xen-netfront alone was selecting. CONFIG_PARAVIRT (KVM steal-time
accounting) was =y through XEN's select and stays =y; savedefconfig now
has to list it explicitly. CONFIG_MMC_SDHCI_XENON is the Marvell SDHCI
controller, not Xen, and stays.

Intentional loss: EVE will no longer boot as a Xen guest.

Signed-off-by: Paul Gaiduk <paulg@zededa.com>
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant