From mboxrd@z Thu Jan 1 00:00:00 1970 From: Olaf Hering Subject: [PATCH 14/17] xenpaging: prevent page-out of first 16MB Date: Mon, 06 Dec 2010 21:59:21 +0100 Message-ID: <20101206205913.112645801@aepfle.de> References: <20101206205907.848643876@aepfle.de> Return-path: Content-Disposition: inline; filename=xen-unstable.xenpaging.blacklist.patch List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is more a workaround than a bugfix: Don't page out first 16MB of memory. When the BIOS does its initialization process and xenpaging removes pages, crashes will occour due to lack of support of xenpaging. Signed-off-by: Olaf Hering --- tools/xenpaging/policy_default.c | 4 ++++ 1 file changed, 4 insertions(+) --- xen-unstable.hg-4.1.22459.orig/tools/xenpaging/policy_default.c +++ xen-unstable.hg-4.1.22459/tools/xenpaging/policy_default.c @@ -60,6 +60,10 @@ int policy_init(xenpaging_t *paging) for ( i = 0; i < MRU_SIZE; i++ ) mru[i] = INVALID_MFN; + /* Don't page out first 16MB */ + for ( i = 0; i < ((16*1024*1024)/4096); i++ ) + set_bit(i, bitmap); + /* Leave a hole for pagetables */ for ( i = 0; i < max_pages; i++ ) set_bit(i, bitmap);