• D
    Support configuration of huge pages in guests · d823a05a
    Daniel P. Berrange 提交于
    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
    d823a05a
qemuxml2xmltest.c 3.4 KB