]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
xml: drop unenforced minimum memory limit from RNG
authorEric Blake <eblake@redhat.com>
Thu, 23 Feb 2012 04:18:39 +0000 (21:18 -0700)
committerEric Blake <eblake@redhat.com>
Thu, 8 Mar 2012 01:24:43 +0000 (18:24 -0700)
commit1b1402b90f335fc668b3781714d598d1ce9d5108
tree7976628c764a07fd5375f4792cff9f2da9319dfe
parent2e14861224f4af54fb5747152263c88a6c23fe3b
xml: drop unenforced minimum memory limit from RNG

The test domain allows <memory>0</memory>, but the RNG was stating
that memory had to be at least 4096000 bytes.  Hypervisors should
enforce their own limits, rather than complicating the RNG.

Meanwhile, some copy and paste had introduced some fishy constructs
in various unit tests.

* docs/schemas/domaincommon.rng (memoryKB, memoryKBElement): Drop
limit that isn't enforced in code.
* src/conf/domain_conf.c (virDomainDefParseXML): Require current
<= maximum.
* tests/qemuxml2argvdata/*.xml: Fix offenders.
15 files changed:
docs/schemas/domaincommon.rng
src/conf/domain_conf.c
tests/qemuxml2argvdata/qemuxml2argv-smartcard-controller.xml
tests/qemuxml2argvdata/qemuxml2argv-smartcard-host-certificates.xml
tests/qemuxml2argvdata/qemuxml2argv-smartcard-host.xml
tests/qemuxml2argvdata/qemuxml2argv-smartcard-passthrough-spicevmc.xml
tests/qemuxml2argvdata/qemuxml2argv-smartcard-passthrough-tcp.xml
tests/qemuxml2argvdata/qemuxml2argv-usb-controller.xml
tests/qemuxml2argvdata/qemuxml2argv-usb-hub.xml
tests/qemuxml2argvdata/qemuxml2argv-usb-ich9-companion.xml
tests/qemuxml2argvdata/qemuxml2argv-usb-ich9-ehci-addr.xml
tests/qemuxml2argvdata/qemuxml2argv-usb-piix3-controller.xml
tests/qemuxml2argvdata/qemuxml2argv-usb-ports.xml
tests/qemuxml2argvdata/qemuxml2argv-usb-redir.xml
tests/qemuxml2argvdata/qemuxml2argv-usb1-usb2.xml