]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virsh: Allow using complete <capabilities> elements with cpu-baseline
authorPeter Krempa <pkrempa@redhat.com>
Thu, 15 Sep 2011 11:51:01 +0000 (13:51 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 28 Sep 2011 07:17:56 +0000 (09:17 +0200)
commitb0889eae6a526f6097dd397d5ee68bb78a1f454b
treea066f617246b2846cc167ac1e0354a5a94bb4212
parent882e768ef0b2b11feeeab7fda0c5b5a3224ed57b
virsh: Allow using complete <capabilities> elements with cpu-baseline

This patch cleans the cpu baseline function using new libvirt helper
functions and fixes XPath expression that selects <cpu> elements from
the source file, that can contain concatenated <capabilities> XMLs,
domain XMLs and bare <cpu> elements. The fixed XPath expression ensures
not to select NUMA <cpu id=... elements.

This patch also removes vshRealloc function, that remained unused after
cleaning up cpu-baseline.

https://bugzilla.redhat.com/show_bug.cgi?id=731645
tools/virsh.c