From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nuq9z-0006tO-MP for qemu-devel@nongnu.org; Thu, 25 Mar 2010 12:43:55 -0400 Received: from [140.186.70.92] (port=50246 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nuq9w-0006rQ-8J for qemu-devel@nongnu.org; Thu, 25 Mar 2010 12:43:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nuq9s-00050c-HS for qemu-devel@nongnu.org; Thu, 25 Mar 2010 12:43:52 -0400 Received: from e23smtp05.au.ibm.com ([202.81.31.147]:46603) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nuq9s-0004zZ-11 for qemu-devel@nongnu.org; Thu, 25 Mar 2010 12:43:48 -0400 Received: from d23relay03.au.ibm.com (d23relay03.au.ibm.com [202.81.31.245]) by e23smtp05.au.ibm.com (8.14.3/8.13.1) with ESMTP id o2PGe6Ur008757 for ; Fri, 26 Mar 2010 03:40:06 +1100 Received: from d23av03.au.ibm.com (d23av03.au.ibm.com [9.190.234.97]) by d23relay03.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o2PGhjRw1744980 for ; Fri, 26 Mar 2010 03:43:45 +1100 Received: from d23av03.au.ibm.com (loopback [127.0.0.1]) by d23av03.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id o2PGhiH6030939 for ; Fri, 26 Mar 2010 03:43:44 +1100 From: "Aneesh Kumar K.V" Date: Thu, 25 Mar 2010 22:13:08 +0530 Message-Id: <1269535420-31206-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH -V3 00/32] virtio-9p: paravirtual file system passthrough List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: ericvh@gmail.com, aliguori@us.ibm.com 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