[libvirt] [PATCH RFC v2 4/5] conf: add caps to virDomainSaveConfig

Daniel P. Berrange berrange at redhat.com
Thu Feb 4 11:14:45 UTC 2016


On Wed, Feb 03, 2016 at 09:40:36PM +0000, Joao Martins wrote:
> virDomainSaveConfig calls virDomainDefFormat which was setting the caps
> to NULL, thus keeping the old behaviour (i.e. not looking at
> netprefix). This patch adds the virCapsPtr to the function and allows
> the configuration to be saved and skipping interface names that were
> registered with virCapabilitiesSetNetPrefix().
> 
> Signed-off-by: Joao Martins <joao.m.martins at oracle.com>
> ---
>  src/bhyve/bhyve_driver.c  |  2 +-
>  src/conf/domain_conf.c    |  5 +++--
>  src/conf/domain_conf.h    |  1 +
>  src/libxl/libxl_driver.c  | 15 ++++++++-------
>  src/lxc/lxc_driver.c      | 20 +++++++++++---------
>  src/qemu/qemu_blockjob.c  |  1 +
>  src/qemu/qemu_driver.c    | 47 ++++++++++++++++++++++++++---------------------
>  src/qemu/qemu_migration.c |  3 ++-
>  src/qemu/qemu_process.c   |  5 +++--
>  src/uml/uml_driver.c      |  2 +-
>  10 files changed, 57 insertions(+), 44 deletions(-)

ACK

Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list