Skip to content

Mini-OS: add minimal 9pfs support

Juergen Gross xen-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest7 patches 3 repliesIn review
  2. v27 patches 12 repliesSuperseded
  3. v17 patches 20 repliesSuperseded

Changes in v3 from the cover letter

- addressed comments by Samuel Thibault and Andrew Cooper

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7Mini-OS: xenbus: add support for reading node from directoryinclude/xenbus.h xenbus.c+43 -30 replies
2/7Mini-OS: add concept of mount pointsinclude/lib.h lib/sys.c+70 -190 replies
3/7Mini-OS: add support for runtime mountsinclude/lib.h lib/sys.c+49 -10 replies
4/7Mini-OS: add 9pfs frontend9pfront.c Config.mk Makefile +4 more+298 -00 replies
5/7Mini-OS: add 9pfs transport layer9pfront.c+478 -00 replies
6/7Mini-OS: add open and close handling to the 9pfs frontend9pfront.c+322 -21 reply
7/7Mini-OS: add read and write support to 9pfsfront9pfront.c+216 -01 reply

Reviews trailers per patch

All 7 patches have a Reviewed-by or Acked-by.

PatchSamuel Thibault
1/7R-b
2/7R-b
3/7R-b
4/7R-b
5/7R-b
6/7R-b
7/7R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 0/7] Mini-OS: add minimal 9pfs support

This series is adding minimal support to use 9pfs in Mini-OS. It is adding a PV 9pfs frontend and the ability to open, close, read and write files.

The series has been tested with qemu as 9pfs backend in a PVH Mini-OS guest (I've used a slightly modified Xenstore-stubdom for that purpose in order to reuse the build runes).

This series is meant to setup the stage for adding file based logging support to Xenstore-stubdom and later to add live update support (being able to save the LU data stream in a dom0 file makes this a _lot_ easier).

In order to keep Mini-OS's license I have only used the protocol docs available on the internet [1] and then verified those with the qemu 9pfs backend implementation (especially for supporting the 9P2000.u variant, as qemu doesn't support the basic 9P2000 protocol).

The needed fixed values of the protocol have been taken from [2].

[1]: http://ericvh.github.io/9p-rfc/rfc9p2000.html
[2]: https://github.com/0intro/libixp

Changes in V2:
- addressed comments by Samuel Thibault

Changes in V3:
- addressed comments by Samuel Thibault and Andrew Cooper

Juergen Gross (7):
Mini-OS: xenbus: add support for reading node from directory
Mini-OS: add concept of mount points
Mini-OS: add support for runtime mounts
Mini-OS: add 9pfs frontend
Mini-OS: add 9pfs transport layer
Mini-OS: add open and close handling to the 9pfs frontend
Mini-OS: add read and write support to 9pfsfront

 9pfront.c                     | 1300 +++++++++++++++++++++++++++++++++
 Config.mk                     |    1 +
 Makefile                      |    1 +
 arch/x86/testbuild/all-no     |    1 +
 arch/x86/testbuild/all-yes    |    1 +
 arch/x86/testbuild/newxen-yes |    1 +
 include/9pfront.h             |    7 +
 include/lib.h                 |   14 +
 include/xenbus.h              |    6 +
 lib/sys.c                     |  123 +++-
 xenbus.c                      |   40 +-
 11 files changed, 1473 insertions(+), 22 deletions(-)
 create mode 100644 9pfront.c
 create mode 100644 include/9pfront.h
Signature · 1 line
2.35.3