Add qemu_net_opts
The first step in porting -net to QemuOpts. We do not include parameter descriptions in the QemuOptsList because we use the first parameter to choose which descriptions validate against. Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
This commit is contained in:
parent
dc9ca4ba27
commit
8119b33d18
@ -152,6 +152,18 @@ QemuOptsList qemu_device_opts = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
QemuOptsList qemu_net_opts = {
|
||||||
|
.name = "net",
|
||||||
|
.head = QTAILQ_HEAD_INITIALIZER(qemu_net_opts.head),
|
||||||
|
.desc = {
|
||||||
|
/*
|
||||||
|
* no elements => accept any params
|
||||||
|
* validation will happen later
|
||||||
|
*/
|
||||||
|
{ /* end of list */ }
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
QemuOptsList qemu_rtc_opts = {
|
QemuOptsList qemu_rtc_opts = {
|
||||||
.name = "rtc",
|
.name = "rtc",
|
||||||
.head = QTAILQ_HEAD_INITIALIZER(qemu_rtc_opts.head),
|
.head = QTAILQ_HEAD_INITIALIZER(qemu_rtc_opts.head),
|
||||||
@ -176,6 +188,7 @@ static QemuOptsList *lists[] = {
|
|||||||
&qemu_drive_opts,
|
&qemu_drive_opts,
|
||||||
&qemu_chardev_opts,
|
&qemu_chardev_opts,
|
||||||
&qemu_device_opts,
|
&qemu_device_opts,
|
||||||
|
&qemu_net_opts,
|
||||||
&qemu_rtc_opts,
|
&qemu_rtc_opts,
|
||||||
NULL,
|
NULL,
|
||||||
};
|
};
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
extern QemuOptsList qemu_drive_opts;
|
extern QemuOptsList qemu_drive_opts;
|
||||||
extern QemuOptsList qemu_chardev_opts;
|
extern QemuOptsList qemu_chardev_opts;
|
||||||
extern QemuOptsList qemu_device_opts;
|
extern QemuOptsList qemu_device_opts;
|
||||||
|
extern QemuOptsList qemu_net_opts;
|
||||||
extern QemuOptsList qemu_rtc_opts;
|
extern QemuOptsList qemu_rtc_opts;
|
||||||
|
|
||||||
int qemu_set_option(const char *str);
|
int qemu_set_option(const char *str);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user