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 1268730920-14584-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com

Versions newest first

  1. v1 Latest22 patches 9 repliesIn review

Changes from V1 from the cover letter

a) fsstress test suite runs successfully with the patches. That should indicate patches are stable enough to be merged.
b) Added proper error handling to all posix_* calls.
c) Fixed code to follow Qemu coding style.
d) Other bug fixes most of which are folded back into the original patches
e) rebased to qemu master 0aef4261ac0ec9089ade0e3a92f986cb4ba7317e

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/22vitio-9p: Add a virtio 9p device to qemuMakefile.target hw/virtio-9p-debug.c hw/virtio-9p.c +3 more+814 -00 replies
2/22vrtio-9p: Implement P9_TVERSION for 9Phw/virtio-9p.c+261 -23 replies
3/22virtio-9p: Implement P9_TATTACHMakefile.target hw/virtio-9p-local.c hw/virtio-9p.c +3 more+270 -103 replies
4/22virtio-9p: Implement P9_TSTAThw/virtio-9p-local.c hw/virtio-9p.c+174 -20 replies
5/22virtio-9p: Implement P9_TWALKhw/virtio-9p-local.c hw/virtio-9p.c+229 -20 replies
6/22virtio-9p: Implement P9_TOPENhw/virtio-9p-local.c hw/virtio-9p.c+151 -60 replies
7/22virtio-9p: Implement P9_TREADhw/virtio-9p-local.c hw/virtio-9p.c+287 -30 replies
8/22virtio-9p: Implement P9_TCLUNKhw/virtio-9p.c+14 -20 replies
9/22virtio-9p: Implement P9_TWRITEhw/virtio-9p-local.c hw/virtio-9p.c+102 -20 replies
10/22virtio-9p: Implement P9_TCREATEhw/virtio-9p-local.c hw/virtio-9p.c+344 -20 replies
11/22virtio-9p: Implement P9_TWSTAThw/virtio-9p-local.c hw/virtio-9p.c+274 -40 replies
12/22virtio-9p: Implement P9_TREMOVEhw/virtio-9p-local.c hw/virtio-9p.c+59 -20 replies
13/22virtio-9p: Implement P9_TFLUSHhw/virtio-9p.c+3 -20 replies
14/22virtio-9p: Add multiple mount point supporthw/9p.h hw/virtio-9p-local.c hw/virtio-9p.c +3 more+296 -1890 replies
15/22virtio-9p: Use little endian format on virtiohw/virtio-9p.c+23 -110 replies
16/22virtio-9p: Add support for hardlinkhw/virtio-9p.c+3 -00 replies
17/22Implement sync support in 9p serverhw/virtio-9p-local.c hw/virtio-9p.c hw/virtio-9p.h+52 -00 replies
18/22virtio-9p: Fix sg usage in the codehw/virtio-9p-debug.c hw/virtio-9p.c hw/virtio-9p.h+98 -510 replies
19/22virtio-9p: Get the correct count values from the pduhw/virtio-9p-debug.c+19 -100 replies
20/22virtio-9p: Remove BUG_ON and add proper error handlinghw/virtio-9p.c+84 -220 replies
21/22virtio-9p: Remove unnecessary definition of fidhw/virtio-9p.c+29 -330 replies
22/22virtio-9p: Update existing fid path on renamehw/virtio-9p.c+39 -00 replies

Reviews trailers per patch

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

PatchVenkateswararao Jujjuri
1/22
2/22
3/22
4/22
5/22
6/22
7/22
8/22
9/22
10/22
11/22
12/22
13/22
14/22
15/22
16/22
17/22
18/22
19/22
20/22
21/22R-b
22/22

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 -V2 00/22] virtio-9p: paravirtual file system passthrough

Hi,

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.

-device virtio-9p-pci,share_path=/mnt/,mount_tag=v_mnt

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 V1:
a) fsstress test suite runs successfully with the patches. That should indicate patches are stable enough to be merged.
b) Added proper error handling to all posix_* calls.
c) Fixed code to follow Qemu coding style.
d) Other bug fixes most of which are folded back into the original patches
e) rebased to qemu master 0aef4261ac0ec9089ade0e3a92f986cb4ba7317e

-aneesh