]> xenbits.xensource.com Git - libvirt.git/commit
xml: allow scaled memory on input
authorEric Blake <eblake@redhat.com>
Mon, 5 Mar 2012 21:52:07 +0000 (14:52 -0700)
committerEric Blake <eblake@redhat.com>
Thu, 8 Mar 2012 01:24:44 +0000 (18:24 -0700)
commit2e22f23bde0ad6630a29d06ce164b6db8395f72c
tree2f6fc1527e49309775d8a86895431bbb35fe9b1e
parent4888f0fb56a95abef102cade8c438403143dc3e3
xml: allow scaled memory on input

Output is still in kibibytes, but input can now be in different
scales for ease of typing.

* src/conf/domain_conf.c (virDomainParseMemory): New helper.
(virDomainDefParseXML): Use it when parsing.
* docs/schemas/domaincommon.rng: Expand XML; rename memoryKBElement
to memoryElement and update callers.
* docs/formatdomain.html.in (elementsMemoryAllocation): Document
scaling.
* tests/qemuxml2argvdata/qemuxml2argv-memtune.xml: Adjust test.
* tests/qemuxml2xmltest.c: Likewise.
* tests/qemuxml2xmloutdata/qemuxml2xmlout-memtune.xml: New file.
docs/formatdomain.html.in
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
tests/qemuxml2argvdata/qemuxml2argv-memtune.xml
tests/qemuxml2xmloutdata/qemuxml2xmlout-memtune.xml [new file with mode: 0644]
tests/qemuxml2xmltest.c