]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
virsh: document the possibility of accepting integers for numatune mode
authorMartin Kletzander <mkletzan@redhat.com>
Wed, 9 Jul 2014 07:53:14 +0000 (09:53 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Wed, 9 Jul 2014 13:08:23 +0000 (15:08 +0200)
According to the code, 'virsh numatune' supports integers for
specifying --mode as well as the string definitions "strict",
"interleave", and "preferred".  However, this possibility was not
documented anywhere, so this patch adds it to both the man page and
command help.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1085706

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
tools/virsh-domain.c
tools/virsh.pod

index b5b9f91e0edcf48267556badf8de7c4cf58d107f..5a17affccba510b733db15f60dc84aa4cc0f6175 100644 (file)
@@ -7823,7 +7823,8 @@ static const vshCmdOptDef opts_numatune[] = {
     },
     {.name = "mode",
      .type = VSH_OT_DATA,
-     .help = N_("NUMA mode, one of strict, preferred and interleave")
+     .help = N_("NUMA mode, one of strict, preferred and interleave \n"
+                "or a number from the virDomainNumatuneMemMode enum")
     },
     {.name = "nodeset",
      .type = VSH_OT_DATA,
index 99d0b746b4fe7a889a9e61fcc2130939d981a167..a5e8406e125c64fe776cf8b403946eac844d97ac 100644 (file)
@@ -1402,9 +1402,11 @@ Set or get a domain's numa parameters, corresponding to the <numatune>
 element of domain XML.  Without flags, the current settings are
 displayed.
 
-I<mode> can be one of `strict', `interleave' and `preferred'.  For a
-running domain, the mode can't be changed, and the nodeset can be
-changed only if the domain was started with a mode of `strict'.
+I<mode> can be one of `strict', `interleave' and `preferred' or any
+valid number from the virDomainNumatuneMemMode enum in case the daemon
+supports it.  For a running domain, the mode can't be changed, and the
+nodeset can be changed only if the domain was started with a mode of
+`strict'.
 
 I<nodeset> is a list of numa nodes used by the host for running the domain.
 Its syntax is a comma separated list, with '-' for ranges and '^' for