]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Add --model option for hypervisor-cpu-baseline
authorJiri Denemark <jdenemar@redhat.com>
Thu, 6 Oct 2022 14:29:32 +0000 (16:29 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 10 Oct 2022 12:31:43 +0000 (14:31 +0200)
commit268a2708c42322808f19f080653911373a7743f2
treee13eccabe3db90c6467d20502434aca1eb94f760
parentb0ff3af4126377e3acae05d3048ea1fbdb9c8143
virsh: Add --model option for hypervisor-cpu-baseline

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@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
docs/manpages/virsh.rst
tools/virsh-host.c
tools/virsh.h
tools/vsh.h