diff options
| author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2026-02-19 19:14:08 +0000 |
|---|---|---|
| committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2026-02-26 01:05:01 +0000 |
| commit | 31367839e0c0216239c064fde344dca0dfd1b5b6 (patch) | |
| tree | 5ecab98b1c7f7a469fb38d415f38767c91ef0c38 /recipes-kernel | |
| parent | 1e88a57bfa40ec640962a8aaea6c1db6da990500 (diff) | |
| download | meta-virtualization-31367839e0c0216239c064fde344dca0dfd1b5b6.tar.gz | |
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 <bruce.ashfield@gmail.com>
Diffstat (limited to 'recipes-kernel')
| -rw-r--r-- | recipes-kernel/linux/linux-yocto/vxn.cfg | 4 | ||||
| -rw-r--r-- | recipes-kernel/linux/linux-yocto_virtualization.inc | 3 |
2 files changed, 5 insertions, 2 deletions
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 | |||
| 20 | # Framebuffer frontend (not strictly required but useful) | 20 | # Framebuffer frontend (not strictly required but useful) |
| 21 | CONFIG_XEN_FBDEV_FRONTEND=y | 21 | CONFIG_XEN_FBDEV_FRONTEND=y |
| 22 | 22 | ||
| 23 | # 9pfs frontend for file sharing (trans=xen) | 23 | # 9pfs Xen transport (base 9p stack comes from cfg/container.scc via vcontainer) |
| 24 | CONFIG_XEN_9PFS_FRONTEND=y | 24 | 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 | |||
| 112 | 112 | ||
| 113 | # vcontainer | 113 | # vcontainer |
| 114 | KERNEL_FEATURES:append = "${@distro_cond_feature('cfg/container.scc', 'vcontainer', d)}" | 114 | KERNEL_FEATURES:append = "${@distro_cond_feature('cfg/container.scc', 'vcontainer', d)}" |
| 115 | |||
| 116 | # vxn: Xen PV guest support for vcontainer-on-Xen | ||
| 117 | SRC_URI += "${@bb.utils.contains('DISTRO_FEATURES', 'vxn', ' file://vxn.cfg', '', d)}" | ||
