From 3329f07b7a8b919d4a5641611beb0671a2c381a2 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 20 Aug 2010 13:52:01 +0200 Subject: 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 Signed-off-by: Anthony Liguori --- hw/qdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hw/qdev.c') diff --git a/hw/qdev.c b/hw/qdev.c index e99c73f0d9..d1acf86c4a 100644 --- a/hw/qdev.c +++ b/hw/qdev.c @@ -792,7 +792,7 @@ int do_device_add(Monitor *mon, const QDict *qdict, QObject **ret_data) { QemuOpts *opts; - opts = qemu_opts_from_qdict(&qemu_device_opts, qdict); + opts = qemu_opts_from_qdict(qemu_find_opts("device"), qdict); if (!opts) { return -1; } -- cgit v1.2.1