mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-03 20:01:16 +00:00
83ae3ee39b
https://bugzilla.redhat.com/show_bug.cgi?id=1260846
Introduced by 8fedbbdb
, if we parse an unordered NUMA cell, will
get a segfault. This is because of a check for overlapping @cpus
sets we have there. However, since the array to hold guest NUMA
cells is allocated upfront and therefore it contains all zeros,
an out of order cell will break our assumption that cell IDs have
increasing character. At this point we try to access yet NULL
bitmap and therefore segfault.
Signed-off-by: Luyao Huang <lhuang@redhat.com>
27 lines
784 B
XML
27 lines
784 B
XML
<domain type='qemu'>
|
|
<name>QEMUGuest1</name>
|
|
<uuid>c7a5fdbd-edaf-9455-926a-d65c16db1809</uuid>
|
|
<memory unit='KiB'>328650</memory>
|
|
<currentMemory unit='KiB'>328650</currentMemory>
|
|
<vcpu placement='static'>16</vcpu>
|
|
<os>
|
|
<type arch='x86_64' machine='pc'>hvm</type>
|
|
<boot dev='network'/>
|
|
</os>
|
|
<cpu>
|
|
<topology sockets='2' cores='4' threads='2'/>
|
|
<numa>
|
|
<cell id='0' cpus='0-5' memory='109550' unit='KiB'/>
|
|
<cell id='2' cpus='6-10' memory='109550' unit='KiB'/>
|
|
<cell id='1' cpus='11-15' memory='109550' 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/qemu</emulator>
|
|
</devices>
|
|
</domain>
|