From 3d54abc7b7f234685ea48bdd1743ed631cf02ba0 Mon Sep 17 00:00:00 2001 From: Gautham R Shenoy Date: Thu, 29 Apr 2010 17:45:03 +0530 Subject: 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 Signed-off-by: Aneesh Kumar K.V Signed-off-by: Anthony Liguori --- qemu-config.h | 1 + 1 file changed, 1 insertion(+) (limited to 'qemu-config.h') diff --git a/qemu-config.h b/qemu-config.h index 5f3480333e..dca69d454b 100644 --- a/qemu-config.h +++ b/qemu-config.h @@ -5,6 +5,7 @@ extern QemuOptsList qemu_drive_opts; extern QemuOptsList qemu_chardev_opts; #ifdef CONFIG_LINUX extern QemuOptsList qemu_fsdev_opts; +extern QemuOptsList qemu_virtfs_opts; #endif extern QemuOptsList qemu_device_opts; extern QemuOptsList qemu_netdev_opts; -- cgit v1.2.3