]> xenbits.xensource.com Git - libvirt.git/commit
conf: Add new helpers to resolve virDomainModificationImpact to domain defs
authorPeter Krempa <pkrempa@redhat.com>
Fri, 29 May 2015 12:37:20 +0000 (14:37 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 4 Jun 2015 08:52:31 +0000 (10:52 +0200)
commit3d021381c71221e563182f03398391eb62735cf9
treec2692dc4b7380ab1c7cc2a5ac7a8c4dafc658f80
parent8db0f438c43bcfdb27bd10656ea109392c7ec4ce
conf: Add new helpers to resolve virDomainModificationImpact to domain defs

virDomainLiveConfigHelperMethod that is used for this job now does
modify the flags but still requires the callers to extract the correct
definition objects.

In addition coverity and other static analyzers are usually unhappy as
they don't grasp the fact that @flags are upadted according to the
correct def to be present.

To work this issue around and simplify the calling chain let's add a new
helper that will work only on drivers that always copy the persistent
def to a transient at start of a vm. This will allow to drop a few
arguments. The new function syntax will also fill two definition
pointers rather than modifying the @flags parameter.
src/conf/domain_conf.c
src/conf/domain_conf.h
src/libvirt_private.syms