Re: [Qemu-devel] [PULL 18/40] hmp: 'drive_add -n' for creating a node without BB

2016-03-16 Thread Kevin Wolf
Am 16.03.2016 um 11:41 hat Paolo Bonzini geschrieben: > > +void hmp_drive_add_node(Monitor *mon, const char *optstr) > > +{ > > +QemuOpts *opts; > > +QDict *qdict; > > +Error *local_err = NULL; > > + > > +opts = qemu_opts_parse_noisily(_drive_opts, optstr, false); > > +if

Re: [Qemu-devel] [PULL 18/40] hmp: 'drive_add -n' for creating a node without BB

2016-03-16 Thread Paolo Bonzini
> +void hmp_drive_add_node(Monitor *mon, const char *optstr) > +{ > +QemuOpts *opts; > +QDict *qdict; > +Error *local_err = NULL; > + > +opts = qemu_opts_parse_noisily(_drive_opts, optstr, false); > +if (!opts) { > +return; > +} > + > +qdict =

[Qemu-devel] [PULL 18/40] hmp: 'drive_add -n' for creating a node without BB

2016-03-14 Thread Kevin Wolf
This patch adds an option to the drive_add HMP command to create only a BlockDriverState without a BlockBackend on top. The motivation for this is that libvirt needs to specify options to a migration target (specifically, detect-zeroes). drive-mirror doesn't allow specifying options, and the