From f31d07d175b25ecca89f5d55dfdf2b55540e5e44 Mon Sep 17 00:00:00 2001 From: Gerd Hoffmann Date: Fri, 31 Jul 2009 12:25:37 +0200 Subject: QemuOpts: switch over -device. Make -device switch use the QemuOpts framework. Everything should continue to work like it did before. New: "-set device.$id.$property=$value" works. Signed-off-by: Gerd Hoffmann Signed-off-by: Anthony Liguori Message-Id: --- qemu-config.c | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'qemu-config.c') diff --git a/qemu-config.c b/qemu-config.c index bcfb6eb..3dd473a 100644 --- a/qemu-config.c +++ b/qemu-config.c @@ -71,8 +71,22 @@ QemuOptsList qemu_drive_opts = { }, }; +QemuOptsList qemu_device_opts = { + .name = "device", + .head = TAILQ_HEAD_INITIALIZER(qemu_device_opts.head), + .desc = { + /* + * no elements => accept any + * sanity checking will happen later + * when setting device properties + */ + { /* end if list */ } + }, +}; + static QemuOptsList *lists[] = { &qemu_drive_opts, + &qemu_device_opts, NULL, }; -- cgit v1.1