1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00
libvirt/tests/qemuxml2argvdata/pseries-phb-numa-node.xml
Daniel P. Berrangé fbf27730a3 conf: add support for specifying CPU "dies" parameter
Recently CPU hardware vendors have started to support a new structure
inside the CPU package topology known as a "die". Thus the hierarchy
is now:

  sockets > dies > cores > threads

This adds support for "dies" in the XML parser, with the value
defaulting to 1 if not specified for backwards compatibility.

For example a system with 64 logical CPUs might report

   <topology sockets="4" dies="2" cores="4" threads="2"/>

Reviewed-by: Jiri Denemark <jdenemar@redhat.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2020-01-16 15:11:42 +00:00

42 lines
1.2 KiB
XML

<domain type='qemu'>
<name>QEMUGuest1</name>
<uuid>87eedafe-eedc-4336-8130-ed9fe5dc90c8</uuid>
<memory unit='KiB'>2097152</memory>
<vcpu placement='static'>8</vcpu>
<numatune>
<memnode cellid="0" mode="strict" nodeset="1"/>
<memnode cellid="1" mode="strict" nodeset="2"/>
</numatune>
<cpu>
<topology sockets='2' dies='1' cores='1' threads='4'/>
<numa>
<cell id='0' cpus='0-3' memory='1048576' unit='KiB'/>
<cell id='1' cpus='4-7' memory='1048576' unit='KiB'/>
</numa>
</cpu>
<os>
<type arch='ppc64' machine='pseries'>hvm</type>
</os>
<devices>
<emulator>/usr/bin/qemu-system-ppc64</emulator>
<controller type='usb' model='none' index='0'/>
<controller type='pci' index='0' model='pci-root'>
<target index='0'/>
</controller>
<controller type='pci' index='1' model='pci-root'>
<target index='1'>
<node>1</node>
</target>
</controller>
<controller type='pci' index='2' model='pci-root'>
<target index='2'/>
</controller>
<controller type='pci' index='3' model='pci-root'>
<target index='3'>
<node>0</node>
</target>
</controller>
<memballoon model='none'/>
</devices>
</domain>