virtio-9p: paravirtual file system passthrough
Get series with b4
b4 am 1269535420-31206-1-git-send-email-aneesh.kumar@linux.vnet.ibm.comVersions newest first
- v1 Latest32 patches 22 repliesIn review
Changes from V2 from the cover letter
1) Added new method for specifying export dir. This new method should be more flexible.
2) rebased to qemu master bedd2912c83b1a87a6bfe3f59a892fd65cda7084
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/32 | vitio-9p: Add a virtio 9p device to qemuMakefile.target hw/ hw/ +3 more | +814 | 1 reply | |
| 2/32 | vrtio-9p: Implement P9_TVERSION for 9Phw/ | +261 | 0 replies | |
| 3/32 | virtio-9p: Implement P9_TATTACHMakefile.target hw/ hw/ +3 more | +270 | 0 replies | |
| 4/32 | virtio-9p: Implement P9_TSTAThw/ hw/ | +174 | 0 replies | |
| 5/32 | virtio-9p: Implement P9_TWALKhw/ hw/ | +229 | 0 replies | |
| 6/32 | virtio-9p: Implement P9_TOPENhw/ hw/ | +151 | 0 replies | |
| 7/32 | virtio-9p: Implement P9_TREADhw/ hw/ | +287 | 0 replies | |
| 8/32 | virtio-9p: Implement P9_TCLUNKhw/ | +14 | 0 replies | |
| 9/32 | virtio-9p: Implement P9_TWRITEhw/ hw/ | +102 | 19 replies | |
| 10/32 | virtio-9p: Implement P9_TCREATEhw/ hw/ | +344 | 0 replies | |
| 11/32 | virtio-9p: Implement P9_TWSTAThw/ hw/ | +274 | 0 replies | |
| 12/32 | virtio-9p: Implement P9_TREMOVEhw/ hw/ | +59 | 0 replies | |
| 13/32 | virtio-9p: Implement P9_TFLUSHhw/ | +3 | 0 replies | |
| 14/32 | virtio-9p: Add multiple mount point supporthw/ hw/ hw/ +3 more | +296 | 0 replies | |
| 15/32 | virtio-9p: Use little endian format on virtiohw/ | +23 | 0 replies | |
| 16/32 | virtio-9p: Add support for hardlinkhw/ | +3 | 0 replies | |
| 17/32 | Implement sync support in 9p serverhw/ hw/ hw/ | +52 | 0 replies | |
| 18/32 | virtio-9p: Fix sg usage in the codehw/ hw/ hw/ | +98 | 0 replies | |
| 19/32 | virtio-9p: Get the correct count values from the pduhw/ | +19 | 0 replies | |
| 20/32 | virtio-9p: Remove BUG_ON and add proper error handlinghw/ | +84 | 0 replies | |
| 21/32 | virtio-9p: Remove unnecessary definition of fidhw/ | +29 | 0 replies | |
| 22/32 | virtio-9p: Update existing fid path on renamehw/ | +39 | 0 replies | |
| 23/32 | vritio-9p: Fix chmod bug with directoryhw/ | +41 | 0 replies | |
| 24/32 | qemu-malloc: Add qemu_asprintfqemu-common.h qemu-malloc.c | +13 | 0 replies | |
| 25/32 | virtio-9p: Move V9fs File system specific options to a separate header file.hw/ hw/ hw/ +1 more | +202 | 2 replies | |
| 26/32 | virtio-9p: Create a commandline option -fsdevqemu-options.hx | +31 | 0 replies | |
| 27/32 | virtio-9p: Create qemu_fsdev_optsqemu-config.c qemu-config.h | +17 | 0 replies | |
| 28/32 | virtio-9p: Handle the fsdev command line options.Makefile.objs fsdev/ fsdev/ +2 more | +147 | 0 replies | |
| 29/32 | virtio-9p: Decouple share_path details from virtio-9p-devhw/ hw/ hw/ +1 more | +23 | 0 replies | |
| 30/32 | virtio-9p: Create a syntactic shortcut for the file-system pass-thruqemu-config.c qemu-config.h qemu-options.hx +1 more | +95 | 0 replies | |
| 31/32 | virtio-9p: Return proper errors from create paths.hw/ | +1 | 0 replies | |
| 32/32 | virtio-9p: Handle unknown 9P protocol versions as per the standards.hw/ | +4 | 0 replies |
Reviews trailers per patch
1 of 32 patches has a Reviewed-by or Acked-by.
| Patch | Venkateswararao Jujjuri |
|---|---|
| 1/32 | |
| 2/32 | |
| 3/32 | |
| 4/32 | |
| 5/32 | |
| 6/32 | |
| 7/32 | |
| 8/32 | |
| 9/32 | |
| 10/32 | |
| 11/32 | |
| 12/32 | |
| 13/32 | |
| 14/32 | |
| 15/32 | |
| 16/32 | |
| 17/32 | |
| 18/32 | |
| 19/32 | |
| 20/32 | |
| 21/32 | R-b |
| 22/32 | |
| 23/32 | |
| 24/32 | |
| 25/32 | |
| 26/32 | |
| 27/32 | |
| 28/32 | |
| 29/32 | |
| 30/32 | |
| 31/32 | |
| 32/32 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Qemu-devel] [PATCH -V3 00/32] virtio-9p: paravirtual file system passthrough
This patch series adds a paravirtual file system passthrough mechanism to QEMU based on the 9P protocol. With the current implementation, all I/O is implemented in the VCPU thread. We've modified the protocol handlers so that we can support dispatch I/O in a thread pool. The actual thread pool implementation will be posted later
This patch set should work with any recent Linux kernel as virtio-9p has been supported for a few kernel releases now. Export dir is specified using the below Qemu option.
-fsdev fstype,id=ID,path=path/to/share \
-device virtio-9p-pci,fsdev=ID,mount_tag=tag \or
-virtfs fstype,path=path/to/share,mount_tag=tag
Only supported fstype currently is "local". mount_tag is used to identify the mount point in the kernel. This will be available in Linux kernel via /sys/devices/virtio-pci/virtio1/mount_tag file.
Changes from V2:
1) Added new method for specifying export dir. This new method should be more flexible.
2) rebased to qemu master bedd2912c83b1a87a6bfe3f59a892fd65cda7084
Changes from V1:
1) fsstress test suite runs successfully with the patches. That should indicate patches are stable enough to be merged.
2) Added proper error handling to all posix_* calls.
3) Fixed code to follow Qemu coding style.
4) Other bug fixes most of which are folded back into the original patches
5) rebased to qemu master 0aef4261ac0ec9089ade0e3a92f986cb4ba7317e
-aneesh