]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xen/p2m: Allow alloc_p2m_middle to call reserve_brk depending on argument
authorKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Fri, 30 Mar 2012 18:15:14 +0000 (14:15 -0400)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 26 Apr 2012 20:59:47 +0000 (16:59 -0400)
commit43a02b584220273d07722b29bc95a2c88f6bc3d1
tree8123c6c0b4ca3acec00a84f01ec935ec14912daf
parent9d65734695ec90f66fbb048390a7c85ee6e428f4
xen/p2m: Allow alloc_p2m_middle to call reserve_brk depending on argument

For identity cases we want to call reserve_brk only on the boundary
conditions of the middle P2M (so P2M[x][y][0] = extend_brk). This is
to work around identify regions (PCI spaces, gaps in E820) which are not
aligned on 2MB regions.

However for the case were we want to allocate P2M middle leafs at the
early bootup stage, irregardless of this alignment check we need some
means of doing that.  For that we provide the new argument.

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/xen/p2m.c