On Tue, May 24, 2011 at 8:16 AM, M. Mohan Kumar <mo...@in.ibm.com> wrote: > @@ -192,6 +196,9 @@ QemuOptsList qemu_virtfs_opts = { > }, { > .name = "security_model", > .type = QEMU_OPT_STRING, > + }, { > + .name = "readonly", > + .type = QEMU_OPT_STRING,
Sorry to bug about bool again but there is a type QEMU_OPT_BOOL and it is worth using. You can get the value using qemu_opt_get_bool(). It handles the parse error case when not on|off so you don't need to duplicate that code. Stefan