[libvirt] [PATCH v2 06/10] qemu: stop passing in virConnectPtr for looking up networks

John Ferlan jferlan at redhat.com
Fri Feb 16 03:02:53 UTC 2018



On 02/15/2018 11:50 AM, Daniel P. Berrangé wrote:
> When setting up graphics, we sometimes need to resolve networks,
> requiring the caller to pass in a virConnectPtr, except sometimes they
> pass in NULL. Use virGetConnectNetwork() to acquire the connection to
> the network driver when it is needed.
> 
> Signed-off-by: Daniel P. Berrangé <berrange at redhat.com>
> ---
>  src/qemu/qemu_driver.c    |  2 +-
>  src/qemu/qemu_migration.c |  2 +-
>  src/qemu/qemu_process.c   | 38 ++++++++++++++++++--------------------
>  src/qemu/qemu_process.h   |  6 ++----
>  tests/qemuxml2argvtest.c  |  2 +-
>  5 files changed, 23 insertions(+), 27 deletions(-)
> 

Reviewed-by: John Ferlan <jferlan at redhat.com>

John




More information about the libvir-list mailing list