mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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>
This commit is contained in:
parent
dfe795e71f
commit
3329f07b7a
13 changed files with 59 additions and 66 deletions
|
@ -1472,7 +1472,7 @@ static USBDevice *usb_net_init(const char *cmdline)
|
|||
QemuOpts *opts;
|
||||
int idx;
|
||||
|
||||
opts = qemu_opts_parse(&qemu_net_opts, cmdline, 0);
|
||||
opts = qemu_opts_parse(qemu_find_opts("net"), cmdline, 0);
|
||||
if (!opts) {
|
||||
return NULL;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue