[libvirt] [PATCH 1/5] virnuma: Introduce huge pages helpers

Daniel P. Berrange berrange at redhat.com
Thu Jun 12 13:32:30 UTC 2014


On Tue, Jun 10, 2014 at 07:21:11PM +0200, Michal Privoznik wrote:
> For future work we need two functions that fetches total number of
> huge pages and number of free pages for given numa node and page size
> (virNumaGetHugePageInfo()).
> 
> Then we need to learn which huge pages are supported on given node
> (virNumaGetHugePages()).
> 
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
>  src/libvirt_private.syms |   2 +
>  src/util/virnuma.c       | 242 +++++++++++++++++++++++++++++++++++++++++++++++
>  src/util/virnuma.h       |  10 ++
>  3 files changed, 254 insertions(+)
> 
> diff --git a/src/libvirt_private.syms b/src/libvirt_private.syms
> index d1d6ff3..cb0d5b1 100644
> --- a/src/libvirt_private.syms
> +++ b/src/libvirt_private.syms
> @@ -1655,6 +1655,8 @@ virDomainNumatuneMemModeTypeFromString;
>  virDomainNumatuneMemModeTypeToString;
>  virNumaGetAutoPlacementAdvice;
>  virNumaGetDistances;
> +virNumaGetHugePageInfo;
> +virNumaGetHugePages;

Actually this should really have s/Huge// in the name
and return all page sizes, not merely huge ones.


Regards,
Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list