[libvirt] [PATCH] Adding support for IVM
Eric Blake
eblake at redhat.com
Wed Jun 16 20:47:26 UTC 2010
On 06/16/2010 01:22 PM, Eduardo Otubo wrote:
> Fixing all pointed in the previous email.
> Thanks for all the comments.
>
> @@ -488,11 +498,45 @@ phypExec(LIBSSH2_SESSION * session, char *cmd, int *exit_status,
> return virBufferContentAndReset(&tex_ret);
> }
>
> +static char *
> +hmc_helper(int system_type, const char *managed_system)
> +{
> + char *unsafe = NULL;
> + if (system_type == HMC)
> + virAsprintf(&unsafe, "-m %s", managed_system);
> + else
> + unsafe[0] = 0;
> + return unsafe;
Unfortunately, for the IVM case, this dereferences NULL :(
And it has the problem that it is not thread-safe.
I'm going to try my hand at tweaking this patch to use virBuffer
instead, but we are getting closer...
--
Eric Blake eblake at redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100616/6dfa01c5/attachment-0001.sig>
More information about the libvir-list
mailing list