[libvirt] [PATCH 8/8] virsh: Add support for setting post-copy migration bandwidth

Ján Tomko jtomko at redhat.com
Thu Feb 7 14:12:14 UTC 2019


On Tue, Feb 05, 2019 at 04:23:11PM +0100, Jiri Denemark wrote:
>Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
>---
> tools/virsh-domain.c | 33 +++++++++++++++++++++++++++++++--
> tools/virsh.pod      | 15 +++++++++++----
> 2 files changed, 42 insertions(+), 6 deletions(-)
>
>diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c
>index 275ac0c318..db0d5d4dcc 100644
>--- a/tools/virsh-domain.c
>+++ b/tools/virsh-domain.c
>@@ -11150,6 +11163,10 @@ static const vshCmdOptDef opts_migrate_setspeed[] = {
>      .flags = VSH_OFLAG_REQ,
>      .help = N_("migration bandwidth limit in MiB/s")
>     },
>+    {.name = "postcopy",
>+     .type = VSH_OT_BOOL,
>+     .help = N_("set postcopy migration bandwidth")

post-copy

>+    },
>     {.name = NULL}
> };
>
>@@ -11191,6 +11212,10 @@ static const vshCmdInfo info_migrate_getspeed[] = {
>
> static const vshCmdOptDef opts_migrate_getspeed[] = {
>     VIRSH_COMMON_OPT_DOMAIN_FULL(VIR_CONNECT_LIST_DOMAINS_ACTIVE),
>+    {.name = "postcopy",
>+     .type = VSH_OT_BOOL,
>+     .help = N_("get postcopy migration bandwidth")

post-copy

>+    },
>     {.name = NULL}
> };
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190207/bc12d487/attachment-0001.sig>


More information about the libvir-list mailing list