From 2c74c2cb4bedddbfa67628fbd5f9273b4e0e9903 Mon Sep 17 00:00:00 2001 From: "M. Mohan Kumar" Date: Tue, 25 Oct 2011 12:10:39 +0530 Subject: hw/9pfs: Read-only support for 9p export A new fsdev parameter "readonly" is introduced to control accessing 9p export. "readonly" can be used to specify the access type. By default "rw" access is given to 9p export. Signed-off-by: M. Mohan Kumar Signed-off-by: Aneesh Kumar K.V --- vl.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'vl.c') diff --git a/vl.c b/vl.c index 1ddb17bfd9..c51a7403cb 100644 --- a/vl.c +++ b/vl.c @@ -2707,6 +2707,8 @@ int main(int argc, char **argv, char **envp) qemu_opt_set(fsdev, "security_model", qemu_opt_get(opts, "security_model")); + qemu_opt_set_bool(fsdev, "readonly", + qemu_opt_get_bool(opts, "readonly", 0)); device = qemu_opts_create(qemu_find_opts("device"), NULL, 0); qemu_opt_set(device, "driver", "virtio-9p-pci"); qemu_opt_set(device, "fsdev", -- cgit v1.2.3