[libvirt] [PATCH v1 3/7] qemu: Utilize virFileFindHugeTLBFS

Daniel P. Berrange berrange at redhat.com
Mon Jul 21 15:03:52 UTC 2014


On Thu, Jul 17, 2014 at 06:12:44PM +0200, Michal Privoznik wrote:
> Use better detection of hugetlbfs mount points. Yes, there can be
> multiple mount points each serving different huge page size.
> 
> Since we already have ability to override the mount point in the
> qemu.conf file, this crazy backward compatibility code is brought in.
> Now we allow multiple mount points, so the "hugetlbfs_mount" option
> must take an list of strings (mount points). But previously, it was
> just a string, so we must accept both types now.
> 
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
>  src/Makefile.am          |   1 +
>  src/qemu/qemu_command.c  |  20 ++++----
>  src/qemu/qemu_conf.c     | 122 +++++++++++++++++++++++++++++++++++++++++------
>  src/qemu/qemu_conf.h     |   9 +++-
>  src/qemu/qemu_driver.c   |  39 +++++++--------
>  src/qemu/qemu_process.c  |  21 +++++---

Also need to update the augeas files & example config to deal
with list or string.

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