]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Sanitize cpu topology numbers
authorPeter Krempa <pkrempa@redhat.com>
Mon, 10 Oct 2016 13:46:25 +0000 (15:46 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 11 Oct 2016 11:52:09 +0000 (13:52 +0200)
commitda0d82d15fd86ca3ed28ec2820fdb824cf92ae91
tree6c1eb135bc7255277c3a5a53b7ea59dee0bf3ea9
parent6aba53468a4c6c2e86212933311e6e156ce4b38a
conf: Sanitize cpu topology numbers

Make sure that the topology results into a sane number of cpus (up to
UINT_MAX) so that it can be sanely compared to the vcpu count of the VM.

Additionally the helper added in this patch allows to fetch the total
number the topology results to so that it does not have to be
reimplemented later.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1378290
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms