mirror of
https://github.com/mii443/qemu.git
synced 2025-12-12 05:18:37 +00:00
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 <kraxel@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
This commit is contained in:
committed by
Anthony Liguori
parent
d058fe03e5
commit
f31d07d175
@@ -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,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user