[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 17 of 22] xenpaging: start paging in the middle of gfn range
# HG changeset patch # User Olaf Hering <olaf@xxxxxxxxx> # Date 1307695643 -7200 # Node ID 6c7c51f831bfe143093146d67a205b6660490021 # Parent 6fafd6e85a20f667c9546d76569049d411b96fb1 xenpaging: start paging in the middle of gfn range Set the starting gfn to somewhere in the middle of the gfn range to avoid paging during BIOS startup. This can speedup booting of a guest. Signed-off-by: Olaf Hering <olaf@xxxxxxxxx> diff -r 6fafd6e85a20 -r 6c7c51f831bf tools/xenpaging/policy_default.c --- a/tools/xenpaging/policy_default.c Fri Jun 10 10:47:22 2011 +0200 +++ b/tools/xenpaging/policy_default.c Fri Jun 10 10:47:23 2011 +0200 @@ -69,6 +69,10 @@ int policy_init(xenpaging_t *paging) /* Don't page out page 0 */ set_bit(0, bitmap); + /* Start in the middle to avoid paging during BIOS startup */ + current_gfn = max_pages / 2; + current_gfn -= paging->num_pages / 2; + rc = 0; out: return rc; _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |