Re: [PATCH -v3 0/7] x86: Use BRK to pre mapping page table to makexen happy

From: Jacob Shin
Date: Thu Oct 18 2012 - 17:57:10 EST


On Thu, Oct 18, 2012 at 01:40:21PM -0700, Yinghai Lu wrote:
> On Thu, Oct 18, 2012 at 9:26 AM, Jacob Shin <jacob.shin@xxxxxxx> wrote:
>
> i tested dom0 conf on 32 bit and 64 bit, they are all working.
>
> and just now I tried with mem=8944m, and they are still working.
>
> anyway, can you please updated -v5 for-x86-mm branch ?
> I removed mark_page_ro workaround according to stefano

Just tested -v5 with Xen, and Dom0 no longer dies. Also tried it on HVM DomU
and also boots fine.

Also tested on our 1TB machine, and it looks good, only E820_RAM are mapped:

[ 0.000000] e820: BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x00000000000983ff] usable
[ 0.000000] BIOS-e820: [mem 0x0000000000098400-0x000000000009ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000000d2000-0x00000000000fffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000000100000-0x00000000c7ebffff] usable
[ 0.000000] BIOS-e820: [mem 0x00000000c7ec0000-0x00000000c7ed7fff] ACPI data
[ 0.000000] BIOS-e820: [mem 0x00000000c7ed8000-0x00000000c7ed9fff] ACPI NVS
[ 0.000000] BIOS-e820: [mem 0x00000000c7eda000-0x00000000c7ffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fec00000-0x00000000fec0ffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fee00000-0x00000000fee00fff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000fff00000-0x00000000ffffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000100000000-0x000000e037ffffff] usable
[ 0.000000] BIOS-e820: [mem 0x000000e038000000-0x000000ffffffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000010000000000-0x0000011ffeffffff] usable

...

[ 0.000000] e820: last_pfn = 0xc7ec0 max_arch_pfn = 0x400000000
[ 0.000000] initial memory mapped: [mem 0x00000000-0x1fffffff]
[ 0.000000] Base memory trampoline at [ffff880000092000] 92000 size 24576
[ 0.000000] Using GB pages for direct mapping
[ 0.000000] init_memory_mapping: [mem 0x00000000-0x000fffff]
[ 0.000000] [mem 0x00000000-0x000fffff] page 4k
[ 0.000000] init_memory_mapping: [mem 0x11ffee00000-0x11ffeffffff]
[ 0.000000] [mem 0x11ffee00000-0x11ffeffffff] page 2M
[ 0.000000] init_memory_mapping: [mem 0x11ffc000000-0x11ffedfffff]
[ 0.000000] [mem 0x11ffc000000-0x11ffedfffff] page 2M
[ 0.000000] init_memory_mapping: [mem 0x11f80000000-0x11ffbffffff]
[ 0.000000] [mem 0x11f80000000-0x11fbfffffff] page 1G
[ 0.000000] [mem 0x11fc0000000-0x11ffbffffff] page 2M
[ 0.000000] init_memory_mapping: [mem 0x11000000000-0x11f7fffffff]
[ 0.000000] [mem 0x11000000000-0x11f7fffffff] page 1G
[ 0.000000] init_memory_mapping: [mem 0x00100000-0xc7ebffff]
[ 0.000000] [mem 0x00100000-0x001fffff] page 4k
[ 0.000000] [mem 0x00200000-0x3fffffff] page 2M
[ 0.000000] [mem 0x40000000-0xbfffffff] page 1G
[ 0.000000] [mem 0xc0000000-0xc7dfffff] page 2M
[ 0.000000] [mem 0xc7e00000-0xc7ebffff] page 4k
[ 0.000000] init_memory_mapping: [mem 0x100000000-0xe037ffffff]
[ 0.000000] [mem 0x100000000-0xdfffffffff] page 1G
[ 0.000000] [mem 0xe000000000-0xe037ffffff] page 2M
[ 0.000000] init_memory_mapping: [mem 0x10000000000-0x10fffffffff]
[ 0.000000] [mem 0x10000000000-0x10fffffffff] page 1G

Thanks!!

>
> Thanks
>
> Yinghai
>

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/