exec.c: Ensure right alignment also for file backed ram
commitea819be42bf460519d285cc8336defe247fb3739
authorDominik Dingel <dingel@linux.vnet.ibm.com>
Mon, 25 Apr 2016 11:55:38 +0000 (25 13:55 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 4 Aug 2016 21:24:41 +0000 (4 16:24 -0500)
tree8d6ba3e1611deab723e51f97c539395adefc989c
parent5a908cb1a8a3cfcade9d35b6819168785ca1fe78
exec.c: Ensure right alignment also for file backed ram

While in the anonymous ram case we already take care of the right alignment
such an alignment gurantee does not exist for file backed ram allocation.

Instead, pagesize is used for alignment. On s390 this is not enough for gmap,
as we need to satisfy an alignment up to segments.

Reported-by: Halil Pasic <pasic@linux.vnet.ibm.com>
Signed-off-by: Dominik Dingel <dingel@linux.vnet.ibm.com>
Message-Id: <1461585338-45863-1-git-send-email-dingel@linux.vnet.ibm.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit d2f39add725e2be849f5fb014a72368f711056fc)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
exec.c
include/qemu/osdep.h
util/oslib-posix.c