memory: move preallocation code out of exec.c
commit38183310be7af6af5ee60e7c9e9647133a7d11c3
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 14 May 2014 09:43:21 +0000 (14 17:43 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 19 Jun 2014 15:44:19 +0000 (19 18:44 +0300)
tree5b43582a4745b4c604c1366c1f3d47d5aadc0f70
parente1c57ab86f3c4ea6532b51cfecf32770b45f5e7a
memory: move preallocation code out of exec.c

So that backends can use it.

Since we need the page size for efficiency, move code to compute it
out of translate-all.c and into util/oslib-win32.c.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
exec.c
include/qemu/osdep.h
include/sysemu/os-win32.h
translate-all.c
util/oslib-posix.c
util/oslib-win32.c