[libvirt PATCH v2 12/14] virsh: Add --model option for hypervisor-cpu-baseline

Ján Tomko jtomko at redhat.com
Mon Oct 10 11:26:11 UTC 2022


On a Friday in 2022, Jiri Denemark wrote:
>This option can be used as a shortcut for creating a single XML with
>just a CPU model name and no features:
>
>    $ virsh hypervisor-cpu-baseline --model Skylake-Server
>    <cpu mode='custom' match='exact'>
>      <model fallback='forbid'>Skylake-Server</model>
>      <feature policy='disable' name='avx512f'/>
>      <feature policy='disable' name='avx512dq'/>
>      <feature policy='disable' name='clwb'/>
>      <feature policy='disable' name='avx512cd'/>
>      <feature policy='disable' name='avx512bw'/>
>      <feature policy='disable' name='avx512vl'/>
>      <feature policy='disable' name='pku'/>
>    </cpu>
>
>Signed-off-by: Jiri Denemark <jdenemar at redhat.com>
>---
>
>Notes:
>    Version 2:
>    - new patch
>
> docs/manpages/virsh.rst | 14 +++++++++++---
> tools/virsh-host.c      | 23 +++++++++++++++++++----
> tools/virsh.h           |  7 +++++--
> tools/vsh.h             | 27 +++++++++++++++++++++++++++
> 4 files changed, 62 insertions(+), 9 deletions(-)
>

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

Jano


More information about the libvir-list mailing list