qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCHv3 2/6] block: introduce bdrv_runtime_opts


From: Max Reitz
Subject: Re: [Qemu-devel] [PATCHv3 2/6] block: introduce bdrv_runtime_opts
Date: Tue, 28 Oct 2014 12:41:26 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.2.0

On 2014-10-28 at 12:14, Stefan Hajnoczi wrote:
On Sat, Oct 25, 2014 at 06:55:49PM +0200, Peter Lieven wrote:
This patch (orginally by Kevin) adds a bdrv_runtime_opts QemuOptsList.
The list will absorb all options that belong to the BDS (and not the
BlockBackend) and will be parsed and handled in bdrv_open_common.

Signed-off-by: Kevin Wolf <address@hidden>
Signed-off-by: Peter Lieven <address@hidden>
Reviewed-by: Max Reitz <address@hidden>
---
  block.c |   38 +++++++++++++++++++++++++++++++++-----
  1 file changed, 33 insertions(+), 5 deletions(-)
Is this purely because the QemuOptsList API is more convenient than
qdict?

I don't see a deeper reason why we must use QemuOptsList here.

If I remember correctly, it was because the command line options are only strings in the QDict. To be able to use types other than strings, it has to be converted to QemuOpts.

Max



reply via email to

[Prev in Thread] Current Thread [Next in Thread]