[Libvir] [PATCH] #6: Change xenUnifiedGetMaxVcpus to make direct calls to the underlying driver
Richard W.M. Jones
rjones at redhat.com
Wed Jul 4 11:53:18 UTC 2007
Richard W.M. Jones wrote:
> diff -u -p -r1.14 xen_unified.c
> --- src/xen_unified.c 26 Jun 2007 11:42:46 -0000 1.14
> +++ src/xen_unified.c 3 Jul 2007 15:01:39 -0000
> @@ -276,17 +269,17 @@ xenUnifiedGetURI (virConnectPtr conn)
> static int
> xenUnifiedGetMaxVcpus (virConnectPtr conn, const char *type)
> {
> - GET_PRIVATE(conn);
Not quite sure what happened there, but obviously the above call to
GET_PRIVATE needs to stay because the priv pointer is used in the
subsequent code ...
> + if (priv->opened[XEN_UNIFIED_HYPERVISOR_OFFSET])
> + return xenHypervisorGetMaxVcpus (conn, type);
> + else {
> + xenUnifiedError (conn, VIR_ERR_NO_SUPPORT, __FUNCTION__);
> + return -1;
> + }
Rich.
--
Emerging Technologies, Red Hat - http://et.redhat.com/~rjones/
Registered Address: Red Hat UK Ltd, Amberley Place, 107-111 Peascod
Street, Windsor, Berkshire, SL4 1TE, United Kingdom. Registered in
England and Wales under Company Registration No. 03798903
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3237 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20070704/054da255/attachment-0001.bin>
More information about the libvir-list
mailing list