]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: cpu: Extract and refactor parsing of cache from virCPUDefParseXML
authorPeter Krempa <pkrempa@redhat.com>
Wed, 5 Oct 2022 10:58:30 +0000 (12:58 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Wed, 2 Nov 2022 08:20:57 +0000 (09:20 +0100)
commitfe4120ec26f8d7d8d4e81d98b5c7e55bb160208d
treeba4224cb37493646895d436b32cdfc353505148c
parent5575187ecef70cb2eb5120fddf4231b6dd7ee99b
conf: cpu: Extract and refactor parsing of cache from virCPUDefParseXML

Move the parser into a helper function named 'virCPUDefParseXMLCache'
and use the virXMLProp* helpers instead of multiple XPath lookups.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/cpu_conf.c