mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
conf, schema: add support for memnode elements
Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
<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'/>
|
||||
<cell id='1' cpus='1' memory='32768'/>
|
||||
</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>
|
||||
@@ -0,0 +1,25 @@
|
||||
<domain type='kvm'>
|
||||
<name>QEMUGuest</name>
|
||||
<uuid>9f4b6512-e73a-4a25-93e8-5307802821ce</uuid>
|
||||
<memory unit='KiB'>65536</memory>
|
||||
<currentMemory unit='KiB'>65536</currentMemory>
|
||||
<vcpu placement='static'>1</vcpu>
|
||||
<numatune>
|
||||
<memory mode='strict' nodeset='0,2'/>
|
||||
<memnode cellid='0' mode='interleave' nodeset='3'/>
|
||||
</numatune>
|
||||
<os>
|
||||
<type arch='x86_64' machine='pc'>hvm</type>
|
||||
<boot dev='hd'/>
|
||||
</os>
|
||||
<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>
|
||||
33
tests/qemuxml2argvdata/qemuxml2argv-numatune-memnode.xml
Normal file
33
tests/qemuxml2argvdata/qemuxml2argv-numatune-memnode.xml
Normal file
@@ -0,0 +1,33 @@
|
||||
<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,^6'/>
|
||||
</numatune>
|
||||
<os>
|
||||
<type arch='x86_64' machine='pc'>hvm</type>
|
||||
<boot dev='hd'/>
|
||||
</os>
|
||||
<cpu>
|
||||
<numa>
|
||||
<cell id='0' cpus='0' memory='20002'/>
|
||||
<cell id='1' cpus='1-27,29' memory='660066'/>
|
||||
<cell id='2' cpus='28-31,^29' memory='24002400'/>
|
||||
</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>
|
||||
@@ -0,0 +1,31 @@
|
||||
<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='auto'>2</vcpu>
|
||||
<numatune>
|
||||
<memory placement='auto'/>
|
||||
<memnode cellid='0' mode='strict' 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'/>
|
||||
<cell id='1' cpus='1' memory='32768'/>
|
||||
</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>
|
||||
@@ -1197,6 +1197,8 @@ mymain(void)
|
||||
DO_TEST("cputune-zero-shares", QEMU_CAPS_NAME);
|
||||
DO_TEST("numatune-memory", NONE);
|
||||
DO_TEST("numatune-auto-nodeset-invalid", NONE);
|
||||
DO_TEST_PARSE_ERROR("numatune-memnode-nocpu", NONE);
|
||||
DO_TEST_PARSE_ERROR("numatune-memnodes-problematic", NONE);
|
||||
DO_TEST("numad", NONE);
|
||||
DO_TEST("numad-auto-vcpu-static-numatune", NONE);
|
||||
DO_TEST("numad-auto-memory-vcpu-cpuset", NONE);
|
||||
|
||||
33
tests/qemuxml2xmloutdata/qemuxml2xmlout-numatune-memnode.xml
Normal file
33
tests/qemuxml2xmloutdata/qemuxml2xmlout-numatune-memnode.xml
Normal file
@@ -0,0 +1,33 @@
|
||||
<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'/>
|
||||
<cell id='1' cpus='1-27,29' memory='660066'/>
|
||||
<cell id='2' cpus='28-31,^29' memory='24002400'/>
|
||||
</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>
|
||||
@@ -374,6 +374,8 @@ mymain(void)
|
||||
DO_TEST_DIFFERENT("cpu-numa2");
|
||||
|
||||
DO_TEST_DIFFERENT("numatune-auto-prefer");
|
||||
DO_TEST_DIFFERENT("numatune-memnode");
|
||||
DO_TEST("numatune-memnode-no-memory");
|
||||
|
||||
virObjectUnref(driver.caps);
|
||||
virObjectUnref(driver.xmlopt);
|
||||
|
||||
Reference in New Issue
Block a user