Support configuration of huge pages in guests
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 25 Aug 2009 14:05:18 +0000 (15:05 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Thu, 3 Sep 2009 12:51:55 +0000 (13:51 +0100)
commitd823a05aef2baa0927e792322f1af45e18c325bd
tree8cb27fd17f1e1fddc4218d53312f645df0020ba4
parent8eacfd4cc23e88d12d671502dc29f700aab66b78
Support configuration of huge pages in guests

Add option to domain XML for

     <memoryBacking>
        <hugepages/>
     </memoryBacking>

* configure.in: Add check for mntent.h
* qemud/libvirtd_qemu.aug, qemud/test_libvirtd_qemu.aug, src/qemu.conf
  Add 'hugetlbfs_mount' config parameter
* src/qemu_conf.c, src/qemu_conf.h: Check for -mem-path flag in QEMU,
  and pass it when hugepages are requested.
  Load hugetlbfs_mount config parameter, search for mount if not given.
* src/qemu_driver.c: Free hugetlbfs_mount/path parameter in driver shutdown.
  Create directory for QEMU hugepage usage, chowning if required.
* docs/formatdomain.html.in: Document memoryBacking/hugepages elements
* docs/schemas/domain.rng: Add memoryBacking/hugepages elements to schema
* src/util.c, src/util.h, src/libvirt_private.syms: Add virFileFindMountPoint
  helper API
* tests/qemuhelptest.c: Add -mem-path constants
* tests/qemuxml2argvtest.c, tests/qemuxml2xmltest.c: Add tests for hugepage
  handling
* tests/qemuxml2argvdata/qemuxml2argv-hugepages.xml,
  tests/qemuxml2argvdata/qemuxml2argv-hugepages.args: Data files for
  hugepage tests
20 files changed:
configure.in
docs/formatdomain.html
docs/formatdomain.html.in
docs/schemas/domain.rng
qemud/libvirtd_qemu.aug
qemud/test_libvirtd_qemu.aug
src/domain_conf.c
src/domain_conf.h
src/libvirt_private.syms
src/qemu.conf
src/qemu_conf.c
src/qemu_conf.h
src/qemu_driver.c
src/util.c
src/util.h
tests/qemuhelptest.c
tests/qemuxml2argvdata/qemuxml2argv-hugepages.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-hugepages.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c
tests/qemuxml2xmltest.c