mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 22:55:23 +00:00
fbf27730a3
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>
30 lines
861 B
XML
30 lines
861 B
XML
<domain type='qemu'>
|
|
<name>QEMUGuest1</name>
|
|
<uuid>1ccfd97d-5eb4-478a-bbe6-88d254c16db7</uuid>
|
|
<memory unit='KiB'>1048576</memory>
|
|
<vcpu placement='static'>24</vcpu>
|
|
<numatune>
|
|
<memnode cellid="0" mode="strict" nodeset="1"/>
|
|
</numatune>
|
|
<cpu>
|
|
<topology sockets='3' dies='1' cores='1' threads='8'/>
|
|
<numa>
|
|
<cell id='0' cpus='0-23' memory='1048576' unit='KiB'/>
|
|
</numa>
|
|
</cpu>
|
|
<os>
|
|
<type arch='ppc64' machine='pseries'>hvm</type>
|
|
</os>
|
|
<devices>
|
|
<emulator>/usr/bin/qemu-system-ppc64</emulator>
|
|
<!-- The default PHB (controller index 0) shouldn't be assigned a NUMA node -->
|
|
<controller type='pci' index='0' model='pci-root'>
|
|
<target index='0'>
|
|
<node>0</node>
|
|
</target>
|
|
</controller>
|
|
<controller type='usb' model='none'/>
|
|
<memballoon model='none'/>
|
|
</devices>
|
|
</domain>
|