U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Kuan-Wei Chiu <visitorckw@gmail.com>
To: Peter Robinson <pbrobinson@gmail.com>
Cc: trini@konsulko.com, tuomas.tynkkynen@iki.fi, bmeng.cn@gmail.com,
	sjg@chromium.org, jerome.forissier@arm.com,
	jserv@ccns.ncku.edu.tw, eleanor15x@gmail.com,
	marscheng@google.com, u-boot@lists.u-boot-project.org
Subject: Re: [PATCH v2 0/6] fs: Add 9P filesystem support over virtio
Date: Wed, 2 Sep 2026 09:51:05 +0800	[thread overview]
Message-ID: <apeBCdth8Rj32qPw@google.com> (raw)
In-Reply-To: <CALeDE9P7UoeyBNfJycD2dUHkEeXiFgi+XaP9hAzKTp+71fvx1Q@mail.gmail.com>

Hi Peter,

On Sun, Aug 30, 2026 at 11:41:48AM +0100, Peter Robinson wrote:
> Hi Kuan-Wei,
> 
> > Add 9P network filesystem support to U-Boot.
> >
> > It allows U-Boot to directly mount host directories in virtualization
> > environments via virtio.
> 
> It would be useful to give an overview in the cover letter how/where
> you expect to be used. While new features are always welcome they also
> come with a maintenance burden so some background is always useful to
> provide more information.

The use case is loading images directly from the host into the VM. That
way I don't need to rebuild and repack disk images like ext4 every time
I modify the kernel, and I also don't have to bother setting up a TFTP
server.

I got the idea a while ago while browsing the upstream LK code and
noticed it had 9P support. I thought it would be cool to have something
similar in U-Boot for kernel loading and testing in qemu.

I will add this background to the cover letter if a v3 is needed.

> 
> From a network stack PoV does this work, been tested, with both the
> legacy stack and LWIP stack? I would tend to push this towards working
> with the LWIP stack as we're moving towards that being the default for
> standard U-Boot (not in SPL) and I wouldn't expect 9P to be supported
> in SPL.
> 
I have only implemented and tested 9P over virtio, so it uses
virtqueues and doesn't go through the network stack at all. It's
independent of both legacy and LWIP stacks. I am not sure if anyone
would actually want 9P over TCP in U-Boot, but if there is demand for
it, I can look into adding a transport driver over the network stack.

Regards,
Kuan-Wei

      reply	other threads:[~2026-09-02  1:51 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-29 19:21 [PATCH v2 0/6] fs: Add 9P filesystem support over virtio Kuan-Wei Chiu
2026-08-29 19:21 ` [PATCH v2 1/6] net: 9p: Add 9P2000.L protocol support Kuan-Wei Chiu
2026-09-11 11:43   ` Simon Glass
2026-08-29 19:21 ` [PATCH v2 2/6] fs: 9p: Add 9P filesystem support Kuan-Wei Chiu
2026-09-11 11:43   ` Simon Glass
2026-08-29 19:21 ` [PATCH v2 3/6] virtio: 9p: Add 9P transport driver Kuan-Wei Chiu
2026-09-11 11:43   ` Simon Glass
2026-09-23 20:53     ` Kuan-Wei Chiu
2026-08-29 19:21 ` [PATCH v2 4/6] doc: 9p: Add 9P filesystem documentation Kuan-Wei Chiu
2026-09-11 11:43   ` Simon Glass
2026-08-29 19:21 ` [PATCH v2 5/6] test: 9p: Add test for 9P filesystem Kuan-Wei Chiu
2026-09-11 11:44   ` Simon Glass
2026-09-23 21:08     ` Kuan-Wei Chiu
2026-09-15 15:57   ` Tom Rini
2026-08-29 19:21 ` [PATCH v2 6/6] MAINTAINERS: Add entry for 9PFS Kuan-Wei Chiu
2026-08-30 10:41 ` [PATCH v2 0/6] fs: Add 9P filesystem support over virtio Peter Robinson
2026-09-02  1:51   ` Kuan-Wei Chiu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=apeBCdth8Rj32qPw@google.com \
    --to=visitorckw@gmail.com \
    --cc=bmeng.cn@gmail.com \
    --cc=eleanor15x@gmail.com \
    --cc=jerome.forissier@arm.com \
    --cc=jserv@ccns.ncku.edu.tw \
    --cc=marscheng@google.com \
    --cc=pbrobinson@gmail.com \
    --cc=sjg@chromium.org \
    --cc=trini@konsulko.com \
    --cc=tuomas.tynkkynen@iki.fi \
    --cc=u-boot@lists.u-boot-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox