summary refs log tree commit diff stats
path: root/hw/qdev-properties.c
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2010-08-20 13:52:01 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2010-08-22 17:11:06 -0500
commit3329f07b7a8b919d4a5641611beb0671a2c381a2 (patch)
treeded5ec633b46ede61c76e65b8e2c28e633388edd /hw/qdev-properties.c
parentdfe795e71fcbf4f766353f2e76fe227b342fc605 (diff)
downloadfocaccia-qemu-3329f07b7a8b919d4a5641611beb0671a2c381a2.tar.gz
focaccia-qemu-3329f07b7a8b919d4a5641611beb0671a2c381a2.zip
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>
Diffstat (limited to 'hw/qdev-properties.c')
-rw-r--r--hw/qdev-properties.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/qdev-properties.c b/hw/qdev-properties.c
index 9219cd7a60..2d600f5eeb 100644
--- a/hw/qdev-properties.c
+++ b/hw/qdev-properties.c
@@ -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);
 }