mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
265457845f
Make it obvious to 'dumpxml' readers what unit we are using, since our default of KiB for memory (1024) differs from qemu's default of MiB; and differs from our use of bytes for storage. Tests were updated via: $ find tests/*data tests/*out -name '*.xml' | \ xargs sed -i 's/<\(memory\|currentMemory\|hard_limit\|soft_limit\|min_guarantee\|swap_hard_limit\)>/<\1 unit='"'KiB'>/" $ find tests/*data tests/*out -name '*.xml' | \ xargs sed -i 's/<\(capacity\|allocation\|available\)>/<\1 unit='"'bytes'>/" followed by a few fixes for the stragglers. Note that with this patch, the RNG for <memory> still forbids validation of anything except unit='KiB', since the code silently ignores the attribute; a later patch will expand <memory> to allow scaled input in the code and update the RNG to match. * docs/schemas/basictypes.rng (unit): Add 'bytes'. (scaledInteger): New define. * docs/schemas/storagevol.rng (sizing): Use it. * docs/schemas/storagepool.rng (sizing): Likewise. * docs/schemas/domaincommon.rng (memoryKBElement): New define; use for memory elements. * src/conf/storage_conf.c (virStoragePoolDefFormat) (virStorageVolDefFormat): Likewise. * src/conf/domain_conf.h (_virDomainDef): Document unit used internally. * src/conf/storage_conf.h (_virStoragePoolDef, _virStorageVolDef): Likewise. * tests/*data/*.xml: Update all tests. * tests/*out/*.xml: Likewise. * tests/define-dev-segfault: Likewise. * tests/openvzutilstest.c (testReadNetworkConf): Likewise. * tests/qemuargv2xmltest.c (blankProblemElements): Likewise. |
||
---|---|---|
.. | ||
sexpr2xml-boot-grub.sexpr | ||
sexpr2xml-boot-grub.xml | ||
sexpr2xml-bridge-ipaddr.sexpr | ||
sexpr2xml-bridge-ipaddr.xml | ||
sexpr2xml-curmem.sexpr | ||
sexpr2xml-curmem.xml | ||
sexpr2xml-disk-block-shareable.sexpr | ||
sexpr2xml-disk-block-shareable.xml | ||
sexpr2xml-disk-block.sexpr | ||
sexpr2xml-disk-block.xml | ||
sexpr2xml-disk-drv-blktap2-raw.sexpr | ||
sexpr2xml-disk-drv-blktap2-raw.xml | ||
sexpr2xml-disk-drv-blktap-qcow.sexpr | ||
sexpr2xml-disk-drv-blktap-qcow.xml | ||
sexpr2xml-disk-drv-blktap-raw.sexpr | ||
sexpr2xml-disk-drv-blktap-raw.xml | ||
sexpr2xml-disk-file.sexpr | ||
sexpr2xml-disk-file.xml | ||
sexpr2xml-fv-autoport.sexpr | ||
sexpr2xml-fv-autoport.xml | ||
sexpr2xml-fv-empty-kernel.sexpr | ||
sexpr2xml-fv-empty-kernel.xml | ||
sexpr2xml-fv-force-hpet.sexpr | ||
sexpr2xml-fv-force-hpet.xml | ||
sexpr2xml-fv-force-nohpet.sexpr | ||
sexpr2xml-fv-force-nohpet.xml | ||
sexpr2xml-fv-kernel.sexpr | ||
sexpr2xml-fv-kernel.xml | ||
sexpr2xml-fv-legacy-vfb.sexpr | ||
sexpr2xml-fv-legacy-vfb.xml | ||
sexpr2xml-fv-localtime.sexpr | ||
sexpr2xml-fv-localtime.xml | ||
sexpr2xml-fv-net-ioemu.sexpr | ||
sexpr2xml-fv-net-ioemu.xml | ||
sexpr2xml-fv-net-netfront.sexpr | ||
sexpr2xml-fv-net-netfront.xml | ||
sexpr2xml-fv-parallel-tcp.sexpr | ||
sexpr2xml-fv-parallel-tcp.xml | ||
sexpr2xml-fv-serial-dev-2-ports.sexpr | ||
sexpr2xml-fv-serial-dev-2-ports.xml | ||
sexpr2xml-fv-serial-dev-2nd-port.sexpr | ||
sexpr2xml-fv-serial-dev-2nd-port.xml | ||
sexpr2xml-fv-serial-file.sexpr | ||
sexpr2xml-fv-serial-file.xml | ||
sexpr2xml-fv-serial-null.sexpr | ||
sexpr2xml-fv-serial-null.xml | ||
sexpr2xml-fv-serial-pipe.sexpr | ||
sexpr2xml-fv-serial-pipe.xml | ||
sexpr2xml-fv-serial-pty.sexpr | ||
sexpr2xml-fv-serial-pty.xml | ||
sexpr2xml-fv-serial-stdio.sexpr | ||
sexpr2xml-fv-serial-stdio.xml | ||
sexpr2xml-fv-serial-tcp-telnet.sexpr | ||
sexpr2xml-fv-serial-tcp-telnet.xml | ||
sexpr2xml-fv-serial-tcp.sexpr | ||
sexpr2xml-fv-serial-tcp.xml | ||
sexpr2xml-fv-serial-udp.sexpr | ||
sexpr2xml-fv-serial-udp.xml | ||
sexpr2xml-fv-serial-unix.sexpr | ||
sexpr2xml-fv-serial-unix.xml | ||
sexpr2xml-fv-sound-all.sexpr | ||
sexpr2xml-fv-sound-all.xml | ||
sexpr2xml-fv-sound.sexpr | ||
sexpr2xml-fv-sound.xml | ||
sexpr2xml-fv-usbmouse.sexpr | ||
sexpr2xml-fv-usbmouse.xml | ||
sexpr2xml-fv-usbtablet.sexpr | ||
sexpr2xml-fv-usbtablet.xml | ||
sexpr2xml-fv-utc.sexpr | ||
sexpr2xml-fv-utc.xml | ||
sexpr2xml-fv-v2.sexpr | ||
sexpr2xml-fv-v2.xml | ||
sexpr2xml-fv.sexpr | ||
sexpr2xml-fv.xml | ||
sexpr2xml-net-bridged.sexpr | ||
sexpr2xml-net-bridged.xml | ||
sexpr2xml-net-e1000.sexpr | ||
sexpr2xml-net-e1000.xml | ||
sexpr2xml-net-routed.sexpr | ||
sexpr2xml-net-routed.xml | ||
sexpr2xml-no-source-cdrom.sexpr | ||
sexpr2xml-no-source-cdrom.xml | ||
sexpr2xml-pci-devs.sexpr | ||
sexpr2xml-pci-devs.xml | ||
sexpr2xml-pv-bootloader-cmdline.sexpr | ||
sexpr2xml-pv-bootloader-cmdline.xml | ||
sexpr2xml-pv-bootloader.sexpr | ||
sexpr2xml-pv-bootloader.xml | ||
sexpr2xml-pv-localtime.sexpr | ||
sexpr2xml-pv-localtime.xml | ||
sexpr2xml-pv-vcpus.sexpr | ||
sexpr2xml-pv-vcpus.xml | ||
sexpr2xml-pv-vfb-new-vncdisplay.sexpr | ||
sexpr2xml-pv-vfb-new-vncdisplay.xml | ||
sexpr2xml-pv-vfb-new.sexpr | ||
sexpr2xml-pv-vfb-new.xml | ||
sexpr2xml-pv-vfb-orig.sexpr | ||
sexpr2xml-pv-vfb-orig.xml | ||
sexpr2xml-pv-vfb-type-crash.sexpr | ||
sexpr2xml-pv-vfb-type-crash.xml | ||
sexpr2xml-pv.sexpr | ||
sexpr2xml-pv.xml |