From 31367839e0c0216239c064fde344dca0dfd1b5b6 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Thu, 19 Feb 2026 19:14:08 +0000 Subject: linux-yocto: add vxn distro feature and Xen PV kernel config Add 'vxn' to DISTRO_FEATURES in vruntime.conf to enable Xen PV guest kernel configuration. When set, linux-yocto_virtualization.inc includes vxn.cfg which enables Xen PVH frontend drivers and the 9p Xen transport (NET_9P_XEN). The base 9p stack comes from the existing vcontainer feature via cfg/container.scc. Signed-off-by: Bruce Ashfield --- recipes-kernel/linux/linux-yocto/vxn.cfg | 4 ++-- recipes-kernel/linux/linux-yocto_virtualization.inc | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'recipes-kernel') diff --git a/recipes-kernel/linux/linux-yocto/vxn.cfg b/recipes-kernel/linux/linux-yocto/vxn.cfg index 932732dc..4358812c 100644 --- a/recipes-kernel/linux/linux-yocto/vxn.cfg +++ b/recipes-kernel/linux/linux-yocto/vxn.cfg @@ -20,5 +20,5 @@ CONFIG_HVC_XEN_FRONTEND=y # Framebuffer frontend (not strictly required but useful) CONFIG_XEN_FBDEV_FRONTEND=y -# 9pfs frontend for file sharing (trans=xen) -CONFIG_XEN_9PFS_FRONTEND=y +# 9pfs Xen transport (base 9p stack comes from cfg/container.scc via vcontainer) +CONFIG_NET_9P_XEN=y diff --git a/recipes-kernel/linux/linux-yocto_virtualization.inc b/recipes-kernel/linux/linux-yocto_virtualization.inc index 89e73c48..8d14ce92 100644 --- a/recipes-kernel/linux/linux-yocto_virtualization.inc +++ b/recipes-kernel/linux/linux-yocto_virtualization.inc @@ -112,3 +112,6 @@ KERNEL_FEATURES:append = "${@distro_cond_feature('cgl/features/selinux/selinux.c # vcontainer KERNEL_FEATURES:append = "${@distro_cond_feature('cfg/container.scc', 'vcontainer', d)}" + +# vxn: Xen PV guest support for vcontainer-on-Xen +SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'vxn', ' file://vxn.cfg', '', d)}" -- cgit v1.2.3-54-g00ecf