mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
QemuOpts: make most qemu_*_opts static
Switch tree to lookup-by-name using qemu_find_opts(). Also hook up virtfs options so qemu_find_opts works for them too. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
dfe795e71f
commit
3329f07b7a
13 changed files with 59 additions and 66 deletions
|
@ -772,5 +772,5 @@ static int qdev_add_one_global(QemuOpts *opts, void *opaque)
|
|||
|
||||
void qemu_add_globals(void)
|
||||
{
|
||||
qemu_opts_foreach(&qemu_global_opts, qdev_add_one_global, NULL, 0);
|
||||
qemu_opts_foreach(qemu_find_opts("global"), qdev_add_one_global, NULL, 0);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue