]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xen: tmem: enable Xen tmem shim to be built/loaded as a module
authorDan Magenheimer <dan.magenheimer@oracle.com>
Wed, 20 Mar 2013 04:07:07 +0000 (15:07 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Thu, 21 Mar 2013 05:28:24 +0000 (16:28 +1100)
commite2dd6d4313195b2616f5fbcbf4fdb5d7a69a0794
tree3fc0eb65d0cd3100ab2362672dc80a70ccb05c80
parentf4ce110c8fc6b64dcfc43aa7ef88d90d9b0f748a
xen: tmem: enable Xen tmem shim to be built/loaded as a module

Allow Xen tmem shim to be built/loaded as a module.  Xen self-ballooning
and frontswap-selfshrinking are now also "lazily" initialized when the Xen
tmem shim is loaded as a module, unless explicitly disabled by module
parameters.

Note runtime dependency disallows loading if cleancache/frontswap lazy
initialization patches are not present.

If built-in (not built as a module), the original mechanism of enabling via
a kernel boot parameter is retained, but this should be considered deprecated.

Note that module unload is explicitly not yet supported.

Signed-off-by: Dan Magenheimer <dan.magenheimer@oracle.com>
[v1: Removed the [CLEANCACHE|FRONTSWAP]_HAS_LAZY_INIT ifdef]
[v2: Squashed the xen/tmem: Remove the subsys call patch in]
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Bob Liu <lliubbo@gmail.com>
Cc: Wanpeng Li <liwanp@linux.vnet.ibm.com>
Cc: Andor Daam <andor.daam@googlemail.com>
Cc: Florian Schmaus <fschmaus@gmail.com>
Cc: Minchan Kim <minchan@kernel.org>
Cc: Stefan Hengelein <ilendir@googlemail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
drivers/xen/Kconfig
drivers/xen/tmem.c
drivers/xen/xen-selfballoon.c
include/xen/tmem.h