mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-09 15:00:07 +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>
34 lines
1.0 KiB
XML
34 lines
1.0 KiB
XML
<domain type='qemu'>
|
|
<name>QEMUGuest</name>
|
|
<uuid>9f4b6512-e73a-4a25-93e8-5307802821ce</uuid>
|
|
<memory unit='KiB'>24682468</memory>
|
|
<currentMemory unit='KiB'>24682468</currentMemory>
|
|
<vcpu placement='static'>32</vcpu>
|
|
<numatune>
|
|
<memory mode='strict' nodeset='0-7'/>
|
|
<memnode cellid='0' mode='preferred' nodeset='3'/>
|
|
<memnode cellid='2' mode='strict' nodeset='1-2,5,7'/>
|
|
</numatune>
|
|
<os>
|
|
<type arch='x86_64' machine='pc'>hvm</type>
|
|
<boot dev='hd'/>
|
|
</os>
|
|
<cpu>
|
|
<numa>
|
|
<cell id='0' cpus='0' memory='20002' unit='KiB'/>
|
|
<cell id='1' cpus='1-27,29' memory='660066' unit='KiB'/>
|
|
<cell id='2' cpus='28-31,^29' memory='24002400' 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>
|