]> git.ipfire.org Git - thirdparty/libvirt.git/commit
cputune: allow interleaved xml
authorEric Blake <eblake@redhat.com>
Mon, 15 Sep 2014 23:33:16 +0000 (17:33 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 16 Sep 2014 00:59:40 +0000 (18:59 -0600)
commit7e8feed4a74b623eca0580a3db140eab2b5fa2b9
treee31c7e71b5f094a65341e07fd610620513214e0b
parente45f0d057ec82cac819ea5a600a5362f368ec68e
cputune: allow interleaved xml

I noticed this with the recent iothread pinning code, but the
problem existed longer than that. The XML validation required
users to supply <cputune> children in a strict order, even though
there was no conceptual reason why they can't occur in any order.

docs/ changes best viewed with -w

* docs/schemas/domaincommon.rng (cputune): Add interleave.
* tests/qemuxml2argvdata/qemuxml2argv-cputune-iothreads.xml: Swap
up order, copying canonical form...
* tests/qemuxml2xmloutdata/qemuxml2xmlout-cputune-iothreads.xml:
...here.
* tests/qemuxml2xmltest.c (mymain): Mark the difference.

Signed-off-by: Eric Blake <eblake@redhat.com>
docs/schemas/domaincommon.rng
tests/qemuxml2argvdata/qemuxml2argv-cputune-iothreads.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-cputune-iothreads.xml [new file with mode: 0644]
tests/qemuxml2xmltest.c