aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexandru Elisei <alexandru.elisei@arm.com>2023-09-07 18:16:54 +0100
committerWill Deacon <will@kernel.org>2023-09-18 11:42:35 +0100
commitc7b7a542cdcd8ebe55cc3e7b49cabba15725c2ca (patch)
tree8416ba98b091eafb7cbbf6d3fa8e6978965ddcc0
parent4498eb7400c6a6289b71be9e8f90e56c6a36271e (diff)
downloadkvmtool-c7b7a542cdcd8ebe55cc3e7b49cabba15725c2ca.tar.gz
builtin-run: Document mode=none for -n/--network
It can be useful to disable all network devices, for example, to remove the compat warning for the default network device when the guest does not initialize it. This can be done by passing mode=none to the --network command line option, but without in-depth knowledge of the code, there is no way for the user to know this. Update the help message for -n/--network to explain what mode=none does. Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com> Link: https://lore.kernel.org/r/20230907171655.6996-3-alexandru.elisei@arm.com Signed-off-by: Will Deacon <will@kernel.org>
-rw-r--r--builtin-run.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/builtin-run.c b/builtin-run.c
index 21373d41..c26184ea 100644
--- a/builtin-run.c
+++ b/builtin-run.c
@@ -252,7 +252,8 @@ static int loglevel_parser(const struct option *opt, const char *arg, int unset)
\
OPT_GROUP("Networking options:"), \
OPT_CALLBACK_DEFAULT('n', "network", NULL, "network params", \
- "Create a new guest NIC", \
+ "Create a new guest NIC. Pass mode=none to disable"\
+ " all network devices", \
netdev_parser, NULL, kvm), \
OPT_BOOLEAN('\0', "no-dhcp", &(cfg)->no_dhcp, "Disable kernel" \
" DHCP in rootfs mode"), \