]> git.baikalelectronics.ru Git - kernel.git/commit
xen: Delay m2p_override initialization
authorJuergen Gross <jgross@suse.com>
Fri, 28 Nov 2014 10:53:54 +0000 (11:53 +0100)
committerDavid Vrabel <david.vrabel@citrix.com>
Thu, 4 Dec 2014 14:08:53 +0000 (14:08 +0000)
commita03f93ca2db75e278eda94b92500b2acd0f1028c
tree779408afdaad29ec09264f17fcc9ded004c9f44e
parentbae34ea355ffe80c084306388c3497f76f794d71
xen: Delay m2p_override initialization

The m2p overrides are used to be able to find the local pfn for a
foreign mfn mapped into the domain. They are used by driver backends
having to access frontend data.

As this functionality isn't used in early boot it makes no sense to
initialize the m2p override functions very early. It can be done
later without doing any harm, removing the need for allocating memory
via extend_brk().

While at it make some m2p override functions static as they are only
used internally.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: David Vrabel <david.vrabel@citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: David Vrabel <david.vrabel@citrix.com>
arch/x86/xen/p2m.c