Skip to content

virtio-9p: paravirtual file system passthrough

Aneesh Kumar K.V qemu-devel 1 version In review

Get series with b4
b4 am 1269535420-31206-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com

Versions newest first

  1. 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 filesSizeRepliesApplied
1/32vitio-9p: Add a virtio 9p device to qemuMakefile.target hw/virtio-9p-debug.c hw/virtio-9p.c +3 more+814 -01 reply
2/32vrtio-9p: Implement P9_TVERSION for 9Phw/virtio-9p.c+261 -20 replies
3/32virtio-9p: Implement P9_TATTACHMakefile.target hw/virtio-9p-local.c hw/virtio-9p.c +3 more+270 -100 replies
4/32virtio-9p: Implement P9_TSTAThw/virtio-9p-local.c hw/virtio-9p.c+174 -20 replies
5/32virtio-9p: Implement P9_TWALKhw/virtio-9p-local.c hw/virtio-9p.c+229 -20 replies
6/32virtio-9p: Implement P9_TOPENhw/virtio-9p-local.c hw/virtio-9p.c+151 -60 replies
7/32virtio-9p: Implement P9_TREADhw/virtio-9p-local.c hw/virtio-9p.c+287 -30 replies
8/32virtio-9p: Implement P9_TCLUNKhw/virtio-9p.c+14 -20 replies
9/32virtio-9p: Implement P9_TWRITEhw/virtio-9p-local.c hw/virtio-9p.c+102 -219 replies
10/32virtio-9p: Implement P9_TCREATEhw/virtio-9p-local.c hw/virtio-9p.c+344 -20 replies
11/32virtio-9p: Implement P9_TWSTAThw/virtio-9p-local.c hw/virtio-9p.c+274 -40 replies
12/32virtio-9p: Implement P9_TREMOVEhw/virtio-9p-local.c hw/virtio-9p.c+59 -20 replies
13/32virtio-9p: Implement P9_TFLUSHhw/virtio-9p.c+3 -20 replies
14/32virtio-9p: Add multiple mount point supporthw/9p.h hw/virtio-9p-local.c hw/virtio-9p.c +3 more+296 -1890 replies
15/32virtio-9p: Use little endian format on virtiohw/virtio-9p.c+23 -110 replies
16/32virtio-9p: Add support for hardlinkhw/virtio-9p.c+3 -00 replies
17/32Implement sync support in 9p serverhw/virtio-9p-local.c hw/virtio-9p.c hw/virtio-9p.h+52 -00 replies
18/32virtio-9p: Fix sg usage in the codehw/virtio-9p-debug.c hw/virtio-9p.c hw/virtio-9p.h+98 -510 replies
19/32virtio-9p: Get the correct count values from the pduhw/virtio-9p-debug.c+19 -100 replies
20/32virtio-9p: Remove BUG_ON and add proper error handlinghw/virtio-9p.c+84 -220 replies
21/32virtio-9p: Remove unnecessary definition of fidhw/virtio-9p.c+29 -330 replies
22/32virtio-9p: Update existing fid path on renamehw/virtio-9p.c+39 -00 replies
23/32vritio-9p: Fix chmod bug with directoryhw/virtio-9p.c+41 -150 replies
24/32qemu-malloc: Add qemu_asprintfqemu-common.h qemu-malloc.c+13 -00 replies
25/32virtio-9p: Move V9fs File system specific options to a separate header file.hw/file-op.h hw/virtio-9p-local.c hw/virtio-9p.c +1 more+202 -1742 replies
26/32virtio-9p: Create a commandline option -fsdevqemu-options.hx+31 -00 replies
27/32virtio-9p: Create qemu_fsdev_optsqemu-config.c qemu-config.h+17 -00 replies
28/32virtio-9p: Handle the fsdev command line options.Makefile.objs fsdev/qemu-fsdev.c fsdev/qemu-fsdev.h +2 more+147 -30 replies
29/32virtio-9p: Decouple share_path details from virtio-9p-devhw/9p.h hw/virtio-9p-local.c hw/virtio-9p.c +1 more+23 -150 replies
30/32virtio-9p: Create a syntactic shortcut for the file-system pass-thruqemu-config.c qemu-config.h qemu-options.hx +1 more+95 -00 replies
31/32virtio-9p: Return proper errors from create paths.hw/virtio-9p.c+1 -10 replies
32/32virtio-9p: Handle unknown 9P protocol versions as per the standards.hw/virtio-9p.c+4 -10 replies

Reviews trailers per patch

1 of 32 patches has a Reviewed-by or Acked-by.

PatchVenkateswararao 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/32R-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.

Read the v1 thread

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