]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Remember page size as kvm->ram_pagesize
authorMichael Ellerman <michael@ellerman.id.au>
Tue, 17 Jul 2012 05:00:13 +0000 (15:00 +1000)
committerPekka Enberg <penberg@kernel.org>
Tue, 17 Jul 2012 14:07:21 +0000 (17:07 +0300)
commit774164c87979e6f01091b1a2790bf2896260a77e
tree5dab3d8d808bfe4906c1d99145de9bbf6d4ac867
parentb2cb20848adec2f15a2f06d309a6ba9206e03337
kvm tools: Remember page size as kvm->ram_pagesize

On some powerpc platforms we need to make sure we only advertise page
sizes to the guest which are <= the size of the pages backing guest RAM.

So have mmap_hugetblfs() save the hugetblfs page size for us, and also
teach mmap_anon_or_hugetblfs() to set the page size for anonymous mmap.

Acked-by: Matt Evans <matt@ozlabs.org>
Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/include/kvm/util.h
tools/kvm/powerpc/include/kvm/kvm-arch.h
tools/kvm/powerpc/kvm.c
tools/kvm/util/util.c
tools/kvm/x86/include/kvm/kvm-arch.h
tools/kvm/x86/kvm.c