Skip to content

Commit e46db7f

Browse files
chantraKernel Patches Daemon
authored andcommitted
selftests/bpf: vm: add support for VIRTIO_FS
danobi/vmtest is going to migrate from using 9p to using virtio_fs to mount the local rootfs: danobi/vmtest#88 BPF CI uses danobi/vmtest to run bpf selftests and will need to support VIRTIO_FS. This change enables new kconfigs to be able to support the upcoming danobi/vmtest. Tested by building a new kernel with those config and confirming it would successfully run with 9p (currently what is used by vmtest), and with virtio_fs (using a local build of vmtest). $ vmtest -k arch/x86/boot/bzImage "findmnt /" => bzImage ===> Booting ===> Setting up VM ===> Running command TARGET SOURCE FSTYPE OPTIONS / /dev/root 9p rw,relatime,cache=5,access=client,msize=512000,trans=virtio $ /home/chantra/local/danobi-vmtest/target/debug/vmtest -k arch/x86/boot/bzImage "findmnt /" => bzImage ===> Initializing host environment ===> Booting ===> Setting up VM ===> Running command TARGET SOURCE FSTYPE OPTIONS / rootfs virtiofs rw,relatime Changes in v2: * Sorted configs alphabetically Signed-off-by: Manu Bretelle <chantr4@gmail.com> Acked-by: Daniel Xu <dxu@dxuuu.xyz>
1 parent aabb31a commit e46db7f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
1-
CONFIG_9P_FS=y
21
CONFIG_9P_FS_POSIX_ACL=y
32
CONFIG_9P_FS_SECURITY=y
3+
CONFIG_9P_FS=y
44
CONFIG_CRYPTO_DEV_VIRTIO=y
5-
CONFIG_NET_9P=y
5+
CONFIG_FUSE_FS=y
6+
CONFIG_FUSE_PASSTHROUGH=y
67
CONFIG_NET_9P_VIRTIO=y
8+
CONFIG_NET_9P=y
79
CONFIG_VIRTIO_BALLOON=y
810
CONFIG_VIRTIO_BLK=y
911
CONFIG_VIRTIO_CONSOLE=y
12+
CONFIG_VIRTIO_FS=y
1013
CONFIG_VIRTIO_NET=y
1114
CONFIG_VIRTIO_PCI=y
1215
CONFIG_VIRTIO_VSOCKETS_COMMON=y

0 commit comments

Comments
 (0)