Use statfs to determine size of huge pagesqemu-0.10.6-3.fc11
commit046661932789fd11acc1293e2106a3eba3e6c840
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 27 Mar 2009 14:34:38 +0000 (27 15:34 +0100)
committerMark McLoughlin <markmc@redhat.com>
Fri, 4 Sep 2009 10:03:11 +0000 (4 11:03 +0100)
treec61ac91aa00dbf783978963586a0c3aaeb65b005
parent5214d6fb4d94934822644ddacf2281be30c89ee5
Use statfs to determine size of huge pages

The current method of finding out the size of huge pages does not work
reliably anymore. Current Linux supports more than one huge page size
but /proc/meminfo only show one of the supported sizes.
To find out the real page size used can be found by calling statfs. This
patch changes qemu to use statfs instead of parsing /proc/meminfo.

(cherry picked from commit f1ac0931a1aeadab2569b7001ec35250e695d94f)

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Fedora-patch: qemu-use-statfs-to-determine-huge-page-size.patch
sysemu.h
vl.c