[libvirt] [PATCH 2/3] Make sure xenHypervisorInit correctly reports errors

Peter Krempa pkrempa at redhat.com
Fri Jul 20 15:55:56 UTC 2012


On 07/20/12 16:11, Daniel P. Berrange wrote:
> From: "Daniel P. Berrange" <berrange at redhat.com>
>
> The xenHypervisorInit method was called from two different
> locations, during initial driver registration and also while
> opening a Xen connection. The former can't report any useful
> errors to the end user/app, so remove it. To ensure thread
> safety use a VIR_ONCE_GLOBAL_INIT call to invoke
> xenHypervisorInit from the xenHypervisorOpen method.
> ---
>   src/xen/xen_driver.c     |    3 ---
>   src/xen/xen_hypervisor.c |   31 ++++++++++---------------------
>   2 files changed, 10 insertions(+), 24 deletions(-)
>

This version definitely looks better. ACK.

Peter




More information about the libvir-list mailing list