virtio-9p: Create a syntactic shortcut for the file-system pass-thru
authorGautham R Shenoy <ego@in.ibm.com>
Thu, 29 Apr 2010 12:15:03 +0000 (17:45 +0530)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 3 May 2010 17:17:39 +0000 (12:17 -0500)
commit1dd45fa2d0512e4eb155dc8377de95a8bc88b784
tree7a3d7f19b6a924bbed402bf9cce07a78eb38e601
parent99465c567e22de6f3cd833a7941f7b74acb992e6
virtio-9p: Create a syntactic shortcut for the file-system pass-thru

Currently the commandline to create a virtual-filesystem pass-through between
the guest and the host is as follows:
#qemu -fsdev fstype,id=ID,path=path/to/share \
      -device virtio-9p-pci,fsdev=ID,mount_tag=tag \

This patch provides a syntactic short-cut to achieve the same as follows:
#qemu -virtfs fstype,path=path/to/share,mount_tag=tag

This will be internally expanded as:
#qemu -fsdev fstype,id=tag,path=path/to/share, \
      -device virtio-9p-pci,fsdev=tag,mount_tag=tag \

Signed-off-by: Gautham R Shenoy <ego@in.ibm.com>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-config.c
qemu-config.h
qemu-options.hx
vl.c