From 74db920c32cea5b52a91b81f2bfd467fc070e942 Mon Sep 17 00:00:00 2001 From: Gautham R Shenoy Date: Thu, 29 Apr 2010 17:44:43 +0530 Subject: virtio-9p: Create a commandline option -fsdev This patch creates a new command line option named -fsdev to hold any file system specific information. The option will currently hold the following attributes: -fsdev fstype id=id,path=path_to_share where fstype: Type of the file system. id: Identifier used to refer to this fsdev path: The path on the host that is identified by this fsdev. [aneesh.kumar@linux.vnet.ibm.com: Abstraction using FsContext] Signed-off-by: Gautham R Shenoy Signed-off-by: Aneesh Kumar K.V Signed-off-by: Anthony Liguori --- qemu-config.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'qemu-config.c') diff --git a/qemu-config.c b/qemu-config.c index 9f0f1435f..cda5060e5 100644 --- a/qemu-config.c +++ b/qemu-config.c @@ -151,6 +151,24 @@ QemuOptsList qemu_chardev_opts = { }, }; +#ifdef CONFIG_LINUX +QemuOptsList qemu_fsdev_opts = { + .name = "fsdev", + .implied_opt_name = "fstype", + .head = QTAILQ_HEAD_INITIALIZER(qemu_fsdev_opts.head), + .desc = { + { + .name = "fstype", + .type = QEMU_OPT_STRING, + }, { + .name = "path", + .type = QEMU_OPT_STRING, + }, + { /*End of list */ } + }, +}; +#endif + QemuOptsList qemu_device_opts = { .name = "device", .implied_opt_name = "driver", -- cgit v1.2.3