Re: [Qemu-devel] [PATCH v20 05/26] remove assertion of qemu_opt_get functions

2014-02-12 Thread Eric Blake
On 02/11/2014 11:33 PM, Chunyan Liu wrote: > In qemu_opt_set functions, if desc doen't exist but opts_accepts_any is true, > it s/doen't/doesn't/ > won't report error, but can still alloc an opt for the option and save it. > However, after that, when doing qemu_opt_get, this option could be foun

[Qemu-devel] [PATCH v20 05/26] remove assertion of qemu_opt_get functions

2014-02-11 Thread Chunyan Liu
In qemu_opt_set functions, if desc doen't exist but opts_accepts_any is true, it won't report error, but can still alloc an opt for the option and save it. However, after that, when doing qemu_opt_get, this option could be found in opts but opt->desc is NULL. This is correct, should not be treated