]> git.ipfire.org Git - thirdparty/libvirt.git/commit
vshExtractCPUDefXML: Accept domain capabilities XML
authorJiri Denemark <jdenemar@redhat.com>
Fri, 4 May 2018 21:46:55 +0000 (23:46 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Mon, 28 May 2018 13:54:10 +0000 (15:54 +0200)
commitd0ff5ce43bdccf9937ce9814eab4c39aac152b6d
tree6c451151f4b14721026d6b696dd0f7419874f960
parent95ef9ceea44d3672e0adc644839bd7422a3e0b8b
vshExtractCPUDefXML: Accept domain capabilities XML

The domain capabilities XML contains host CPU model tailored to a
specific hypervisor and since it's enclosed in <mode name='host-model'>
element rather then the required <cpu> it's impossible to directly use
the host CPU model as an input to, e.g., cpu-compare command. To make
this more convenient, vshExtractCPUDefXML now accepts full domain
capabilities XML and automatically transforms the host CPU models into
the form accepted by libvirt APIs.

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Collin Walling <walling@linux.ibm.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
tools/virsh-host.c
tools/virsh.pod