[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Can't see more than 3.5GB of RAM

The code in setup.c has changed very little between versions, but I have applied this patch successfully to 4.1.2, 4.1.3, and 4.2.

I happened to be testing rc3 right now, and here is what that section of the file has:

#if 0
    else if ( e820_raw_nr != 0 )
        memmap_type = "Xen-e820";
    else if ( bootsym(lowmem_kb) )
        memmap_type = "Xen-e801";
        e820_raw[0].addr = 0;
        e820_raw[0].size = bootsym(lowmem_kb) << 10;
        e820_raw[0].type = E820_RAM;
        e820_raw[1].addr = 0x100000;
        e820_raw[1].size = bootsym(highmem_kb) << 10;
        e820_raw[1].type = E820_RAM;
        e820_raw_nr = 2;
    else if ( mbi->flags & MBI_MEMMAP )

The condition "( e820_raw_nr != 0 )" has remained the same.

The important change is that it went from "if" to an "else if", which means the line after you close your "#endif" has to continue or open the conditional statement.

So in 4.1.2 you might replace the following "else if" with just "if".

The goal is to comment out the e801 mapping information.  I have no idea what kind of effects this would have on other systems, but it has worked fine for me.

On Wed, Aug 22, 2012 at 8:18 PM, Jonathan Tripathy <jonnyt@xxxxxxxxxxx> wrote:
On 23/08/2012 01:13, Casey DeLorme wrote:

Well, that's a shame.  Pretty sure the e801 Map is your problem, and the only fix I have found involves compiling from source with modifications:

I have had success applying the above fix with plenty of versions of Xen, so I can vouch for the above post being a valid workaround.  I still use it with Xen 4.2.

Must be a grub efi bug, supposedly 4.2 has a new option to build xen.efi, which would replace the debian.efi boot file, but I haven't figured anything out for that.

I also came across that serverfault posting. Am I correct in saying that the patch will have to be modified a little to work for 4.1.2?


Xen-users mailing list

Xen-users mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.