WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [Patch] Allow bitmasks with the badpage bootoption

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [Patch] Allow bitmasks with the badpage bootoption
From: "Erik Bosman" <ebosman@xxxxxxxxx>
Date: Tue, 4 Apr 2006 19:22:58 +0200
Delivery-date: Tue, 04 Apr 2006 10:23:19 -0700
Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type; b=rmvxS5aq3gGuNileWSth7JxHXvyR29Md1bWjWW1kVqzxZTnw7OnZGBUBFRjMGE7U4yJPCVHelesspNGHgMR94FkPx0DO2JbWpE14hv6xBKZjes6mJuPSAyJirN0pOhkZCVdFs20M5K4ryQCWlgryyIbwjIyFrDWeigO2v7/V//c=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi,

The current "badpage" boot option only allows you to select
individual pages, which is not an option for me, since I have
close to 32M of bad ram. My patch allows the use of masks
to select many pages at once, much like the linux BADRAM
patch.

Masks can be specified using a forward slash, like, for example:
badpage=0xa2000/0xef000,0x00100/0xfff00,0x01000

This way, it's compatible with the current scheme.

I also wrote a small testprogram to test the algorithm.

Regards,
Erik Bosman

Attachment: bad_page-mask.patch
Description: Text Data

Attachment: bad_page-mask-test.c
Description: Text Data

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel