ia64/xen-unstable

changeset 8975:ef31d088adeb

Silenty ignore calls to xen_create_contiguous_region() when running
in auto_translated_physmap mode. A new comment in that function explains
why this is an okay thing to do.

This avoids an unnecessary crash in Xen's skbuff_ctor.

Signed-off-by: Michael Vrable <mvrable@cs.ucsd.edu>
Signed-off-by: Keir Fraser <keir@xensource.com>
author kaf24@firebug.cl.cam.ac.uk
date Thu Feb 23 11:42:19 2006 +0100 (2006-02-23)
parents 0349fb4de335
children 4f4625f80528
files linux-2.6-xen-sparse/arch/i386/mm/hypervisor.c
line diff
     1.1 --- a/linux-2.6-xen-sparse/arch/i386/mm/hypervisor.c	Thu Feb 23 11:34:11 2006 +0100
     1.2 +++ b/linux-2.6-xen-sparse/arch/i386/mm/hypervisor.c	Thu Feb 23 11:42:19 2006 +0100
     1.3 @@ -324,10 +324,13 @@ int xen_create_contiguous_region(
     1.4  		.domid        = DOMID_SELF
     1.5  	};
     1.6  
     1.7 -	if (xen_feature(XENFEAT_auto_translated_physmap)) {
     1.8 -		BUG_ON(order >= 1);
     1.9 +	/*
    1.10 +	 * Currently an auto-translated guest will not perform I/O, nor will
    1.11 +	 * it require PAE page directories below 4GB. Therefore any calls to
    1.12 +	 * this function are redundant and can be ignored.
    1.13 +	 */
    1.14 +	if (xen_feature(XENFEAT_auto_translated_physmap))
    1.15  		return 0;
    1.16 -	}
    1.17  
    1.18  	scrub_pages(vstart, 1 << order);
    1.19