mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 20:33:54 -06:00
net: do not exit on "netdev_add help" monitor command
"netdev_add help" is causing QEMU to exit because the code that invokes show_netdevs is shared between CLI and HMP processing. Move the check to the callers so that exit(0) remains only in the CLI flow. "netdev_add help" is not fixed by this patch; that is left for later work. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
This commit is contained in:
parent
c2cb511634
commit
ad6f932fe8
3 changed files with 43 additions and 36 deletions
|
@ -199,6 +199,7 @@ extern const char *host_net_devices[];
|
|||
|
||||
/* from net.c */
|
||||
int net_client_parse(QemuOptsList *opts_list, const char *str);
|
||||
void show_netdevs(void);
|
||||
int net_init_clients(Error **errp);
|
||||
void net_check_clients(void);
|
||||
void net_cleanup(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue