From c7b9f206667af82381e932095dc5bde9386a366d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A1n=20Tomko?= Date: Thu, 5 Feb 2015 15:30:50 +0100 Subject: [PATCH] Add --migratable support to virsh cpu-baseline Wire up VIR_CONNECT_BASELINE_CPU_MIGRATABLE to this command line option. --- tools/virsh-domain.c | 6 ++++++ tools/virsh.pod | 5 +++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/tools/virsh-domain.c b/tools/virsh-domain.c index 80a96b2ae0..55c269c518 100644 --- a/tools/virsh-domain.c +++ b/tools/virsh-domain.c @@ -6913,6 +6913,10 @@ static const vshCmdOptDef opts_cpu_baseline[] = { .type = VSH_OT_BOOL, .help = N_("Show features that are part of the CPU model type") }, + {.name = "migratable", + .type = VSH_OT_BOOL, + .help = N_("Do not include features that block migration") + }, {.name = NULL} }; @@ -6935,6 +6939,8 @@ cmdCPUBaseline(vshControl *ctl, const vshCmd *cmd) if (vshCommandOptBool(cmd, "features")) flags |= VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES; + if (vshCommandOptBool(cmd, "migratable")) + flags |= VIR_CONNECT_BASELINE_CPU_MIGRATABLE; if (vshCommandOptStringReq(ctl, cmd, "file", &from) < 0) return false; diff --git a/tools/virsh.pod b/tools/virsh.pod index 343f26f2be..85ce257f71 100644 --- a/tools/virsh.pod +++ b/tools/virsh.pod @@ -569,7 +569,7 @@ I modifier can be used to narrow the modification down to a single host NUMA cell. On the other end of spectrum lies I<--all> which executes the modification on all NUMA cells. -=item B I [I<--features>] +=item B I [I<--features>] [I<--migratable>] Compute baseline CPU which will be supported by all host CPUs given in . The list of host CPUs is built by extracting all elements from the @@ -578,7 +578,8 @@ by new lines or even a set of complete elements printed by B command. If I<--features> is specified then the resulting XML description will explicitly include all features that make up the CPU, without this option features that are part of the CPU model -will not be listed in the XML description. +will not be listed in the XML description. If I<--migratable> is specified, +features that block migration will not be included in the resulting CPU. =item B I [I<--error>] -- GitLab