Call MADV_HUGEPAGE for guest RAM allocations
authorLuiz Capitulino <lcapitulino@redhat.com>
Fri, 5 Oct 2012 19:47:57 +0000 (16:47 -0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 22 Oct 2012 18:26:34 +0000 (13:26 -0500)
commitad0b5321f1f797274603ebbe20108b0750baee94
treed66e04150cabc509f915b1ac7b13de163457816f
parentf526f3c315d7c3ff7b7db39ae3a49f91d3a9986b
Call MADV_HUGEPAGE for guest RAM allocations

This makes it possible for QEMU to use transparent huge pages (THP)
when transparent_hugepage/enabled=madvise. Otherwise THP is only
used when it's enabled system wide.

Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
exec.c
osdep.h