]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Allow system pages to <memoryBacking/>
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 12 Dec 2014 09:37:35 +0000 (10:37 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 15 Dec 2014 12:36:47 +0000 (13:36 +0100)
commit311b4a677f60cc1a3a29c525a703b31ec47d95b5
tree95f1ba55a0a61eba2330be892ce10a95452bd450
parent5fc1c51743643a02c0306d6c17fe86e9013ce342
qemu: Allow system pages to <memoryBacking/>

https://bugzilla.redhat.com/show_bug.cgi?id=1173507

It occurred to me that OpenStack uses the following XML when not using
regular huge pages:

  <memoryBacking>
    <hugepages>
      <page size='4' unit='KiB'/>
    </hugepages>
  </memoryBacking>

However, since we are expecting to see huge pages only, we fail to
startup the domain with following error:

  libvirtError: internal error: Unable to find any usable hugetlbfs
  mount for 4 KiB

While regular system pages are not huge pages technically, our code is
prepared for that and if it helps OpenStack (or other management
applications) we should cope with that.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_command.c
tests/qemuxml2argvdata/qemuxml2argv-hugepages-pages6.args [new file with mode: 0644]
tests/qemuxml2argvdata/qemuxml2argv-hugepages-pages6.xml [new file with mode: 0644]
tests/qemuxml2argvtest.c