]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit65f2b9c949c45636bd9a6bc0af6ffbc4dd93d96f
treeb94c68234d0d430e97d21b458c0d8e092680f408
parent1facd21a695d16ca55bb9df34f3cd4dbbdc8ffce
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