mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 23:55:23 +00:00
e3c44f0d36
CPU numa topology implicitly allows memory specification in 'KiB'. Enabling this to accept the 'unit' in which memory needs to be specified. This now allows users to specify memory in units of choice, and lists the same in 'KiB' -- just like other 'memory' elements in XML. <numa> <cell cpus='0-3' memory='1024' unit='MiB' /> <cell cpus='4-7' memory='1024' unit='MiB' /> </numa> Also augment test cases to correctly model NUMA memory specification. This adds the tag 'unit="KiB"' for memory attribute in NUMA cells. Signed-off-by: Prerna Saxena <prerna@linux.vnet.ibm.com> Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
31 lines
864 B
XML
31 lines
864 B
XML
<domain type='qemu'>
|
|
<name>QEMUGuest</name>
|
|
<uuid>9f4b6512-e73a-4a25-93e8-5307802821ce</uuid>
|
|
<memory unit='KiB'>65536</memory>
|
|
<currentMemory unit='KiB'>65536</currentMemory>
|
|
<vcpu placement='static'>2</vcpu>
|
|
<numatune>
|
|
<memnode cellid='0' mode='preferred' nodeset='3'/>
|
|
</numatune>
|
|
<os>
|
|
<type arch='x86_64' machine='pc'>hvm</type>
|
|
<boot dev='hd'/>
|
|
</os>
|
|
<cpu>
|
|
<numa>
|
|
<cell id='0' cpus='0' memory='32768' unit='KiB'/>
|
|
<cell id='1' cpus='1' memory='32768' unit='KiB'/>
|
|
</numa>
|
|
</cpu>
|
|
<clock offset='utc'/>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>restart</on_reboot>
|
|
<on_crash>destroy</on_crash>
|
|
<devices>
|
|
<emulator>/usr/bin/kvm</emulator>
|
|
<controller type='usb' index='0'/>
|
|
<controller type='pci' index='0' model='pci-root'/>
|
|
<memballoon model='virtio'/>
|
|
</devices>
|
|
</domain>
|