libvirt/tests/vmx2xmldata
Eric Blake 265457845f xml: output memory unit for clarity
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.
2012-03-07 18:24:43 -07:00
..
vmx2xml-annotation.vmx esx: Map the .vmx annotation to the domain XML description 2010-08-30 22:22:03 +02:00
vmx2xml-annotation.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-case-insensitive-1.vmx vmx: Support persistent CPU shares 2011-04-05 08:40:57 +02:00
vmx2xml-case-insensitive-1.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-case-insensitive-2.vmx esx: Make the conf parser compare names case insensitive in VMX mode 2010-03-24 21:03:37 +01:00
vmx2xml-case-insensitive-2.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-cdrom-ide-device.vmx ESX add tests for the VMX to/from domain XML mapping 2009-09-23 15:00:54 +02:00
vmx2xml-cdrom-ide-device.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-cdrom-ide-file.vmx ESX add tests for the VMX to/from domain XML mapping 2009-09-23 15:00:54 +02:00
vmx2xml-cdrom-ide-file.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-cdrom-scsi-device.vmx ESX add tests for the VMX to/from domain XML mapping 2009-09-23 15:00:54 +02:00
vmx2xml-cdrom-scsi-device.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-cdrom-scsi-file.vmx ESX add tests for the VMX to/from domain XML mapping 2009-09-23 15:00:54 +02:00
vmx2xml-cdrom-scsi-file.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-esx-in-the-wild-1.vmx vmx: Support persistent CPU shares 2011-04-05 08:40:57 +02:00
vmx2xml-esx-in-the-wild-1.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-esx-in-the-wild-2.vmx ESX add tests for the VMX to/from domain XML mapping 2009-09-23 15:00:54 +02:00
vmx2xml-esx-in-the-wild-2.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-esx-in-the-wild-3.vmx ESX add tests for the VMX to/from domain XML mapping 2009-09-23 15:00:54 +02:00
vmx2xml-esx-in-the-wild-3.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-esx-in-the-wild-4.vmx ESX add tests for the VMX to/from domain XML mapping 2009-09-23 15:00:54 +02:00
vmx2xml-esx-in-the-wild-4.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-esx-in-the-wild-5.vmx esx: Add support for memtune/min_guarantee 2010-11-09 19:28:33 +01:00
vmx2xml-esx-in-the-wild-5.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-esx-in-the-wild-6.vmx esx: Fix regression in absolute file name handling 2011-05-26 23:32:44 +02:00
vmx2xml-esx-in-the-wild-6.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-ethernet-bridged.vmx ESX add tests for the VMX to/from domain XML mapping 2009-09-23 15:00:54 +02:00
vmx2xml-ethernet-bridged.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-ethernet-custom.vmx ESX add tests for the VMX to/from domain XML mapping 2009-09-23 15:00:54 +02:00
vmx2xml-ethernet-custom.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-ethernet-e1000.vmx ESX add tests for the VMX to/from domain XML mapping 2009-09-23 15:00:54 +02:00
vmx2xml-ethernet-e1000.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-ethernet-generated.vmx esx: Fix 'vpx' MAC address range and allow arbitrary MAC addresses 2010-01-07 01:38:19 +01:00
vmx2xml-ethernet-generated.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-ethernet-nat.vmx vmx: Better Workstation vmx handling 2012-02-24 11:53:23 +01:00
vmx2xml-ethernet-nat.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-ethernet-other.vmx esx: Fix 'vpx' MAC address range and allow arbitrary MAC addresses 2010-01-07 01:38:19 +01:00
vmx2xml-ethernet-other.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-ethernet-static.vmx esx: Fix 'vpx' MAC address range and allow arbitrary MAC addresses 2010-01-07 01:38:19 +01:00
vmx2xml-ethernet-static.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-ethernet-vmxnet2.vmx esx: Add support for the VMXNET 2 (Enhanced) NIC model 2010-04-20 20:58:24 +02:00
vmx2xml-ethernet-vmxnet2.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-ethernet-vpx.vmx esx: Fix 'vpx' MAC address range and allow arbitrary MAC addresses 2010-01-07 01:38:19 +01:00
vmx2xml-ethernet-vpx.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-floppy-device.vmx ESX add tests for the VMX to/from domain XML mapping 2009-09-23 15:00:54 +02:00
vmx2xml-floppy-device.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-floppy-file.vmx ESX add tests for the VMX to/from domain XML mapping 2009-09-23 15:00:54 +02:00
vmx2xml-floppy-file.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-graphics-vnc.vmx esx: Add VNC support 2010-01-18 01:44:20 +01:00
vmx2xml-graphics-vnc.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-gsx-in-the-wild-1.vmx ESX add tests for the VMX to/from domain XML mapping 2009-09-23 15:00:54 +02:00
vmx2xml-gsx-in-the-wild-1.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-gsx-in-the-wild-2.vmx ESX add tests for the VMX to/from domain XML mapping 2009-09-23 15:00:54 +02:00
vmx2xml-gsx-in-the-wild-2.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-gsx-in-the-wild-3.vmx ESX add tests for the VMX to/from domain XML mapping 2009-09-23 15:00:54 +02:00
vmx2xml-gsx-in-the-wild-3.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-gsx-in-the-wild-4.vmx ESX add tests for the VMX to/from domain XML mapping 2009-09-23 15:00:54 +02:00
vmx2xml-gsx-in-the-wild-4.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-harddisk-ide-file.vmx ESX add tests for the VMX to/from domain XML mapping 2009-09-23 15:00:54 +02:00
vmx2xml-harddisk-ide-file.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-harddisk-scsi-file.vmx ESX add tests for the VMX to/from domain XML mapping 2009-09-23 15:00:54 +02:00
vmx2xml-harddisk-scsi-file.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-minimal-64bit.vmx ESX add tests for the VMX to/from domain XML mapping 2009-09-23 15:00:54 +02:00
vmx2xml-minimal-64bit.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-minimal.vmx ESX add tests for the VMX to/from domain XML mapping 2009-09-23 15:00:54 +02:00
vmx2xml-minimal.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-parallel-device.vmx ESX add tests for the VMX to/from domain XML mapping 2009-09-23 15:00:54 +02:00
vmx2xml-parallel-device.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-parallel-file.vmx ESX add tests for the VMX to/from domain XML mapping 2009-09-23 15:00:54 +02:00
vmx2xml-parallel-file.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-scsi-driver.vmx esx: Allow 'vmpvscsi' as SCSI controller model 2010-07-24 17:31:04 +02:00
vmx2xml-scsi-driver.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-scsi-writethrough.vmx ESX add tests for the VMX to/from domain XML mapping 2009-09-23 15:00:54 +02:00
vmx2xml-scsi-writethrough.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-serial-device.vmx ESX add tests for the VMX to/from domain XML mapping 2009-09-23 15:00:54 +02:00
vmx2xml-serial-device.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-serial-file.vmx ESX add tests for the VMX to/from domain XML mapping 2009-09-23 15:00:54 +02:00
vmx2xml-serial-file.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-serial-network-client.vmx esx: Add support for virtual serial device network backing 2010-10-01 23:38:23 +02:00
vmx2xml-serial-network-client.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-serial-network-server.vmx esx: Add support for virtual serial device network backing 2010-10-01 23:38:23 +02:00
vmx2xml-serial-network-server.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-serial-pipe-client-app.vmx ESX add tests for the VMX to/from domain XML mapping 2009-09-23 15:00:54 +02:00
vmx2xml-serial-pipe-client-vm.vmx ESX add tests for the VMX to/from domain XML mapping 2009-09-23 15:00:54 +02:00
vmx2xml-serial-pipe-server-app.vmx ESX add tests for the VMX to/from domain XML mapping 2009-09-23 15:00:54 +02:00
vmx2xml-serial-pipe-server-vm.vmx ESX add tests for the VMX to/from domain XML mapping 2009-09-23 15:00:54 +02:00
vmx2xml-serial-pipe.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-smbios.vmx esx: Support SMBIOS host mode 2010-11-11 19:18:19 +01:00
vmx2xml-smbios.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-svga.vmx vmx: Add support for video device VRAM size 2011-01-06 18:18:35 +01:00
vmx2xml-svga.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-ws-in-the-wild-1.vmx vmx: Better Workstation vmx handling 2012-02-24 11:53:23 +01:00
vmx2xml-ws-in-the-wild-1.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00
vmx2xml-ws-in-the-wild-2.vmx vmx: Better Workstation vmx handling 2012-02-24 11:53:23 +01:00
vmx2xml-ws-in-the-wild-2.xml xml: output memory unit for clarity 2012-03-07 18:24:43 -07:00