Re: [Qemu-devel] [PATCH 4/7] qemu-io: add support for --object command line arg

2015-12-23 Thread Daniel P. Berrange
On Wed, Dec 23, 2015 at 07:02:01PM +0100, Paolo Bonzini wrote: > > > On 22/12/2015 18:24, Daniel P. Berrange wrote: > > I was a little reluctant to move this 'object_create' method into the > > qom/ code though, since I hate the idea of the legacy 'QemuOpts' data > > anywhere near those nice new

Re: [Qemu-devel] [PATCH 4/7] qemu-io: add support for --object command line arg

2015-12-23 Thread Paolo Bonzini
On 22/12/2015 18:24, Daniel P. Berrange wrote: > I was a little reluctant to move this 'object_create' method into the > qom/ code though, since I hate the idea of the legacy 'QemuOpts' data > anywhere near those nice new APIs. I guess I could perhaps just keep the > qemu_opts_to_qdict() call in

Re: [Qemu-devel] [PATCH 4/7] qemu-io: add support for --object command line arg

2015-12-22 Thread Daniel P. Berrange
On Tue, Dec 22, 2015 at 09:55:17AM -0700, Eric Blake wrote: > On 12/22/2015 04:06 AM, Daniel P. Berrange wrote: > > Allow creation of user creatable object types with qemu-io > > via a --object command line arg. This will be used to supply > > passwords and/or encryption keys to the various block d

Re: [Qemu-devel] [PATCH 4/7] qemu-io: add support for --object command line arg

2015-12-22 Thread Eric Blake
On 12/22/2015 04:06 AM, Daniel P. Berrange wrote: > Allow creation of user creatable object types with qemu-io > via a --object command line arg. This will be used to supply > passwords and/or encryption keys to the various block driver > backends via the recently added 'secret' object type. > >

[Qemu-devel] [PATCH 4/7] qemu-io: add support for --object command line arg

2015-12-22 Thread Daniel P. Berrange
Allow creation of user creatable object types with qemu-io via a --object command line arg. This will be used to supply passwords and/or encryption keys to the various block driver backends via the recently added 'secret' object type. # echo -n letmein > mypasswd.txt # qemu-io --object secret,id