x86: kvmclock: allocate pvclock shared memory area
authorMarcelo Tosatti <mtosatti@redhat.com>
Wed, 28 Nov 2012 01:28:48 +0000 (23:28 -0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Wed, 28 Nov 2012 01:29:05 +0000 (23:29 -0200)
commit7069ed67635b8d574541af426d752cd7fbd465a6
treeb94c68234d0d430e97d21b458c0d8e092680f408
parent78c0337a38450f809113dd46fe038874b93909f1
x86: kvmclock: allocate pvclock shared memory area

We want to expose the pvclock shared memory areas, which
the hypervisor periodically updates, to userspace.

For a linear mapping from userspace, it is necessary that
entire page sized regions are used for array of pvclock
structures.

There is no such guarantee with per cpu areas, therefore move
to memblock_alloc based allocation.

Acked-by: Glauber Costa <glommer@parallels.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kernel/kvmclock.c