]> xenbits.xensource.com Git - libvirt.git/commit
conf: Factor out vcpus parsing part from virDomainCachetuneDefParse
authorBing Niu <bing.niu@intel.com>
Mon, 30 Jul 2018 03:12:36 +0000 (11:12 +0800)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 13 Aug 2018 18:19:41 +0000 (14:19 -0400)
commit6021c3926ba62a2593f0db63e5413e9663c69a5f
tree1aba726973206fa28f6585d8aa9511f214e61ed4
parentacc288d655237a22a95c5a1ae7207916fb9efac9
conf: Factor out vcpus parsing part from virDomainCachetuneDefParse

Extract vcpus parsing part from virDomainCachetuneDefParse into one
function called virDomainResctrlParseVcpus. So that vcpus parsing logic
can be reused by other resource control technologies. Adjust error
message and use node->name so that the error message can fit to all
technologies.

Signed-off-by: Bing Niu <bing.niu@intel.com>
Reviewed-by: John Ferlan <jferlan@redhat.com>
src/conf/domain_conf.c