]> git.proxmox.com Git - mirror_qemu.git/commit - util/qemu-option.c
util: Add qemu_opts_to_qdict_filtered()
authorKevin Wolf <kwolf@redhat.com>
Thu, 11 Jan 2018 16:37:23 +0000 (17:37 +0100)
committerKevin Wolf <kwolf@redhat.com>
Fri, 9 Mar 2018 14:17:47 +0000 (15:17 +0100)
commit72215395b9e44f13be48e8576b90719738766edf
tree2ccaae522d7413ce5e1f9b693920b3cf18de05a3
parente4b5dad8269b1b629c52be25e6da50644293abf7
util: Add qemu_opts_to_qdict_filtered()

This allows, given a QemuOpts for a QemuOptsList that was merged from
multiple QemuOptsList, to only consider those options that exist in one
specific list. Block drivers need this to separate format-layer create
options from protocol-level options.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
include/qemu/option.h
util/qemu-option.c