]> xenbits.xensource.com Git - libvirt.git/commit
conf: Refactor virDomainVcpuPinDefParseXML
authorPeter Krempa <pkrempa@redhat.com>
Tue, 7 Apr 2015 18:09:04 +0000 (20:09 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Tue, 14 Apr 2015 07:28:02 +0000 (09:28 +0200)
commit3f9fb2b5871cbd252af592cb210bb46fd7f57d23
treedb62eee35c03fdc27d54d8e11c12a59c88313b8c
parent78d1b0f9b35ae7bc1b5569aeaba6a52355a647a9
conf: Refactor virDomainVcpuPinDefParseXML

Refactor the code to parse the vcpupin in a similar way the iothreadpin
code is now structured. This allows to get rid of some very strange
conditions and error messages.

Additionally since a existing bug
( https://bugzilla.redhat.com/show_bug.cgi?id=1208434 ) allows to add
vcpupin definitions for vcpus that don't exist, this patch makes the
parser to ignore all vcpupins that don't have a matching vCPU in the
definition rather than just offlined ones.
src/conf/domain_conf.c