]> git.proxmox.com Git - mirror_qemu.git/commit - net/net.c
net: Restore printing of the help text with "-nic help"
authorThomas Huth <thuth@redhat.com>
Thu, 10 Nov 2022 12:52:23 +0000 (13:52 +0100)
committerJason Wang <jasowang@redhat.com>
Fri, 17 Feb 2023 05:31:33 +0000 (13:31 +0800)
commit27c819244b8129a4742bfe43d255cdaa8528765d
tree11802ad608f8beeabe2ca36d5195ce8e09f74f47
parentc6941b3b9b7445f7760c462882f8397b9dc51e30
net: Restore printing of the help text with "-nic help"

Running QEMU with "-nic help" used to work in QEMU 5.2 and earlier versions
(it showed the available netdev backends), but this feature got broken during
some refactoring in version 6.0. Let's restore the old behavior, and while
we're at it, let's also print the available NIC models here now since this
option can be used to configure both, netdev backend and model in one go.

Fixes: ad6f932fe8 ("net: do not exit on "netdev_add help" monitor command")
Signed-off-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
net/net.c