mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-05 04:41:20 +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. |
||
---|---|---|
.. | ||
xml2vmx-annotation.vmx | ||
xml2vmx-annotation.xml | ||
xml2vmx-cdrom-ide-device.vmx | ||
xml2vmx-cdrom-ide-device.xml | ||
xml2vmx-cdrom-ide-file.vmx | ||
xml2vmx-cdrom-ide-file.xml | ||
xml2vmx-cdrom-scsi-device.vmx | ||
xml2vmx-cdrom-scsi-device.xml | ||
xml2vmx-cdrom-scsi-file.vmx | ||
xml2vmx-cdrom-scsi-file.xml | ||
xml2vmx-esx-in-the-wild-1.vmx | ||
xml2vmx-esx-in-the-wild-1.xml | ||
xml2vmx-esx-in-the-wild-2.vmx | ||
xml2vmx-esx-in-the-wild-2.xml | ||
xml2vmx-esx-in-the-wild-3.vmx | ||
xml2vmx-esx-in-the-wild-3.xml | ||
xml2vmx-esx-in-the-wild-4.vmx | ||
xml2vmx-esx-in-the-wild-4.xml | ||
xml2vmx-esx-in-the-wild-5.vmx | ||
xml2vmx-esx-in-the-wild-5.xml | ||
xml2vmx-esx-in-the-wild-6.vmx | ||
xml2vmx-esx-in-the-wild-6.xml | ||
xml2vmx-ethernet-bridged.vmx | ||
xml2vmx-ethernet-bridged.xml | ||
xml2vmx-ethernet-custom.vmx | ||
xml2vmx-ethernet-custom.xml | ||
xml2vmx-ethernet-e1000.vmx | ||
xml2vmx-ethernet-e1000.xml | ||
xml2vmx-ethernet-generated.vmx | ||
xml2vmx-ethernet-generated.xml | ||
xml2vmx-ethernet-nat.vmx | ||
xml2vmx-ethernet-nat.xml | ||
xml2vmx-ethernet-other.vmx | ||
xml2vmx-ethernet-other.xml | ||
xml2vmx-ethernet-static.vmx | ||
xml2vmx-ethernet-static.xml | ||
xml2vmx-ethernet-vmxnet2.vmx | ||
xml2vmx-ethernet-vmxnet2.xml | ||
xml2vmx-ethernet-vpx.vmx | ||
xml2vmx-ethernet-vpx.xml | ||
xml2vmx-floppy-device.vmx | ||
xml2vmx-floppy-device.xml | ||
xml2vmx-floppy-file.vmx | ||
xml2vmx-floppy-file.xml | ||
xml2vmx-graphics-vnc.vmx | ||
xml2vmx-graphics-vnc.xml | ||
xml2vmx-gsx-in-the-wild-1.vmx | ||
xml2vmx-gsx-in-the-wild-1.xml | ||
xml2vmx-gsx-in-the-wild-2.vmx | ||
xml2vmx-gsx-in-the-wild-2.xml | ||
xml2vmx-gsx-in-the-wild-3.vmx | ||
xml2vmx-gsx-in-the-wild-3.xml | ||
xml2vmx-gsx-in-the-wild-4.vmx | ||
xml2vmx-gsx-in-the-wild-4.xml | ||
xml2vmx-harddisk-ide-file.vmx | ||
xml2vmx-harddisk-ide-file.xml | ||
xml2vmx-harddisk-scsi-file.vmx | ||
xml2vmx-harddisk-scsi-file.xml | ||
xml2vmx-minimal-64bit.vmx | ||
xml2vmx-minimal-64bit.xml | ||
xml2vmx-minimal.vmx | ||
xml2vmx-minimal.xml | ||
xml2vmx-parallel-device.vmx | ||
xml2vmx-parallel-device.xml | ||
xml2vmx-parallel-file.vmx | ||
xml2vmx-parallel-file.xml | ||
xml2vmx-scsi-driver.vmx | ||
xml2vmx-scsi-driver.xml | ||
xml2vmx-scsi-writethrough.vmx | ||
xml2vmx-scsi-writethrough.xml | ||
xml2vmx-serial-device.vmx | ||
xml2vmx-serial-device.xml | ||
xml2vmx-serial-file.vmx | ||
xml2vmx-serial-file.xml | ||
xml2vmx-serial-network-client.vmx | ||
xml2vmx-serial-network-client.xml | ||
xml2vmx-serial-network-server.vmx | ||
xml2vmx-serial-network-server.xml | ||
xml2vmx-serial-pipe.vmx | ||
xml2vmx-serial-pipe.xml | ||
xml2vmx-smbios.vmx | ||
xml2vmx-smbios.xml | ||
xml2vmx-svga.vmx | ||
xml2vmx-svga.xml | ||
xml2vmx-ws-in-the-wild-1.vmx | ||
xml2vmx-ws-in-the-wild-1.xml | ||
xml2vmx-ws-in-the-wild-2.vmx | ||
xml2vmx-ws-in-the-wild-2.xml |