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@aepfle.de>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
This commit is contained in:
Olaf Hering committed 2011-06-10 10:47:23 +02:00
1 parent fd1b11466e
commit 46a3d35ca3
1 file changed
+4
+4
View File
@@ -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;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.