* [PATCH v2 bpf-next] selftests/bpf: vm: add support for VIRTIO_FS
@ 2024-09-25 0:22 Manu Bretelle
2024-09-25 5:54 ` Daniel Xu
2024-09-27 20:40 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 4+ messages in thread
From: Manu Bretelle @ 2024-09-25 0:22 UTC (permalink / raw)
To: bpf; +Cc: andrii, daniel, ast, martin.lau, song, eddyz87, dxu,
yonghong.song
danobi/vmtest is going to migrate from using 9p to using virtio_fs to
mount the local rootfs: https://github.com/danobi/vmtest/pull/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>
---
tools/testing/selftests/bpf/config.vm | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/tools/testing/selftests/bpf/config.vm b/tools/testing/selftests/bpf/config.vm
index a9746ca78777..da543b24c144 100644
--- a/tools/testing/selftests/bpf/config.vm
+++ b/tools/testing/selftests/bpf/config.vm
@@ -1,12 +1,15 @@
-CONFIG_9P_FS=y
CONFIG_9P_FS_POSIX_ACL=y
CONFIG_9P_FS_SECURITY=y
+CONFIG_9P_FS=y
CONFIG_CRYPTO_DEV_VIRTIO=y
-CONFIG_NET_9P=y
+CONFIG_FUSE_FS=y
+CONFIG_FUSE_PASSTHROUGH=y
CONFIG_NET_9P_VIRTIO=y
+CONFIG_NET_9P=y
CONFIG_VIRTIO_BALLOON=y
CONFIG_VIRTIO_BLK=y
CONFIG_VIRTIO_CONSOLE=y
+CONFIG_VIRTIO_FS=y
CONFIG_VIRTIO_NET=y
CONFIG_VIRTIO_PCI=y
CONFIG_VIRTIO_VSOCKETS_COMMON=y
--
2.43.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v2 bpf-next] selftests/bpf: vm: add support for VIRTIO_FS
2024-09-25 0:22 [PATCH v2 bpf-next] selftests/bpf: vm: add support for VIRTIO_FS Manu Bretelle
@ 2024-09-25 5:54 ` Daniel Xu
2024-09-26 16:21 ` Manu Bretelle
2024-09-27 20:40 ` patchwork-bot+netdevbpf
1 sibling, 1 reply; 4+ messages in thread
From: Daniel Xu @ 2024-09-25 5:54 UTC (permalink / raw)
To: Manu Bretelle
Cc: bpf, andrii, daniel, ast, martin.lau, song, eddyz87,
yonghong.song
On Tue, Sep 24, 2024 at 05:22:10PM GMT, Manu Bretelle wrote:
> danobi/vmtest is going to migrate from using 9p to using virtio_fs to
> mount the local rootfs: https://github.com/danobi/vmtest/pull/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>
> ---
> tools/testing/selftests/bpf/config.vm | 7 +++++--
> 1 file changed, 5 insertions(+), 2 deletions(-)
>
> diff --git a/tools/testing/selftests/bpf/config.vm b/tools/testing/selftests/bpf/config.vm
> index a9746ca78777..da543b24c144 100644
> --- a/tools/testing/selftests/bpf/config.vm
> +++ b/tools/testing/selftests/bpf/config.vm
> @@ -1,12 +1,15 @@
> -CONFIG_9P_FS=y
> CONFIG_9P_FS_POSIX_ACL=y
> CONFIG_9P_FS_SECURITY=y
> +CONFIG_9P_FS=y
> CONFIG_CRYPTO_DEV_VIRTIO=y
> -CONFIG_NET_9P=y
> +CONFIG_FUSE_FS=y
> +CONFIG_FUSE_PASSTHROUGH=y
In fs/fuse/Kconfig I see CONFIG_FUSE_PASSTHROUGH defaults on:
config FUSE_PASSTHROUGH
bool "FUSE passthrough operations support"
default y
depends on FUSE_FS
So is it necessary to set here? I suppose if it matters that we're sure
it's enabled, it's better to be explicit.
> CONFIG_NET_9P_VIRTIO=y
> +CONFIG_NET_9P=y
> CONFIG_VIRTIO_BALLOON=y
> CONFIG_VIRTIO_BLK=y
> CONFIG_VIRTIO_CONSOLE=y
> +CONFIG_VIRTIO_FS=y
> CONFIG_VIRTIO_NET=y
> CONFIG_VIRTIO_PCI=y
> CONFIG_VIRTIO_VSOCKETS_COMMON=y
> --
> 2.43.5
>
Acked-by: Daniel Xu <dxu@dxuuu.xyz>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 bpf-next] selftests/bpf: vm: add support for VIRTIO_FS
2024-09-25 5:54 ` Daniel Xu
@ 2024-09-26 16:21 ` Manu Bretelle
0 siblings, 0 replies; 4+ messages in thread
From: Manu Bretelle @ 2024-09-26 16:21 UTC (permalink / raw)
To: Daniel Xu
Cc: bpf, andrii, daniel, ast, martin.lau, song, eddyz87,
yonghong.song
> >
> > diff --git a/tools/testing/selftests/bpf/config.vm b/tools/testing/selftests/bpf/config.vm
> > index a9746ca78777..da543b24c144 100644
> > --- a/tools/testing/selftests/bpf/config.vm
> > +++ b/tools/testing/selftests/bpf/config.vm
> > @@ -1,12 +1,15 @@
> > -CONFIG_9P_FS=y
> > CONFIG_9P_FS_POSIX_ACL=y
> > CONFIG_9P_FS_SECURITY=y
> > +CONFIG_9P_FS=y
> > CONFIG_CRYPTO_DEV_VIRTIO=y
> > -CONFIG_NET_9P=y
> > +CONFIG_FUSE_FS=y
> > +CONFIG_FUSE_PASSTHROUGH=y
>
> In fs/fuse/Kconfig I see CONFIG_FUSE_PASSTHROUGH defaults on:
>
> config FUSE_PASSTHROUGH
> bool "FUSE passthrough operations support"
> default y
> depends on FUSE_FS
>
> So is it necessary to set here? I suppose if it matters that we're sure
> it's enabled, it's better to be explicit.
>
IIRC, this is what part of the diff that was generated after running:
./scripts/config -e FUSE_FS -e VIRTIO_FS
over my original .config, but I may be wrong.
I don't remember adding this explicitly.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v2 bpf-next] selftests/bpf: vm: add support for VIRTIO_FS
2024-09-25 0:22 [PATCH v2 bpf-next] selftests/bpf: vm: add support for VIRTIO_FS Manu Bretelle
2024-09-25 5:54 ` Daniel Xu
@ 2024-09-27 20:40 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 4+ messages in thread
From: patchwork-bot+netdevbpf @ 2024-09-27 20:40 UTC (permalink / raw)
To: Manu Bretelle
Cc: bpf, andrii, daniel, ast, martin.lau, song, eddyz87, dxu,
yonghong.song
Hello:
This patch was applied to bpf/bpf-next.git (master)
by Andrii Nakryiko <andrii@kernel.org>:
On Tue, 24 Sep 2024 17:22:10 -0700 you wrote:
> danobi/vmtest is going to migrate from using 9p to using virtio_fs to
> mount the local rootfs: https://github.com/danobi/vmtest/pull/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.
>
> [...]
Here is the summary with links:
- [v2,bpf-next] selftests/bpf: vm: add support for VIRTIO_FS
https://git.kernel.org/bpf/bpf-next/c/903d4edb973a
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-09-27 20:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-25 0:22 [PATCH v2 bpf-next] selftests/bpf: vm: add support for VIRTIO_FS Manu Bretelle
2024-09-25 5:54 ` Daniel Xu
2024-09-26 16:21 ` Manu Bretelle
2024-09-27 20:40 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox