Re: [libvirt] [PATCH 4/9] virConnectBaselineCPU public API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 05, 2010 at 04:56:53PM +0100, Jiri Denemark wrote:
> Signed-off-by: Jiri Denemark <jdenemar@xxxxxxxxxx>
> ---
>  include/libvirt/libvirt.h.in |   18 ++++++++++++++++++
>  src/libvirt_public.syms      |    5 +++++
>  2 files changed, 23 insertions(+), 0 deletions(-)
> 
> diff --git a/include/libvirt/libvirt.h.in b/include/libvirt/libvirt.h.in
> index f192fb1..0a96a04 100644
> --- a/include/libvirt/libvirt.h.in
> +++ b/include/libvirt/libvirt.h.in
> @@ -1756,6 +1756,24 @@ int virConnectCompareCPU(virConnectPtr conn,
>                           unsigned int flags);
>  
>  
> +/**
> + * virConnectBaselineCPU:
> + *
> + * @conn: virConnect connection
> + * @ncpus: number of CPUs in xmlCPUs
> + * @xmlCPUs: array of XML descriptions of host CPUs
> + * @flags: fine-tuning flags
> + *
> + * Computes the most feature-rich CPU which is compatible with all given
> + * host CPUs.
> + *
> + * Returns XML description of the computed CPU or NULL on error.
> + */
> +char *virConnectBaselineCPU(virConnectPtr conn,
> +                            unsigned int ncpus,
> +                            const char **xmlCPUs,
> +                            unsigned int flags);

Can we switch this one to to have 'ncpus' after xmlCPUs too.

> +
>  #ifdef __cplusplus
>  }
>  #endif
> diff --git a/src/libvirt_public.syms b/src/libvirt_public.syms
> index 0521158..bb4963b 100644
> --- a/src/libvirt_public.syms
> +++ b/src/libvirt_public.syms
> @@ -349,4 +349,9 @@ LIBVIRT_0.7.5 {
>          virDomainMemoryStats;
>  } LIBVIRT_0.7.3;
>  
> +LIBVIRT_0.7.7 {
> +    global:
> +        virConnectBaselineCPU;
> +} LIBVIRT_0.7.5;
> +
>  # .... define new API here using predicted next version number ....
> -- 

Regards,
Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]