Re: [PATCH 06/19] x86, mm: setup page table in top-down

2012-10-24 Thread Stefano Stabellini
On Tue, 23 Oct 2012, Yinghai Lu wrote: > On Tue, Oct 23, 2012 at 5:22 AM, Stefano Stabellini > wrote: > > On Mon, 22 Oct 2012, Yinghai Lu wrote: > >> Can you test domU 32bit too? > >> I did not test that, and looks like Jacob only test 64 bit domU too. > > > > Sure. It works fine. > > great. > >

Re: [PATCH 06/19] x86, mm: setup page table in top-down

2012-10-23 Thread Yinghai Lu
On Tue, Oct 23, 2012 at 5:16 AM, Stefano Stabellini wrote: > On Mon, 22 Oct 2012, Yinghai Lu wrote: >> On Mon, Oct 22, 2012 at 11:17 AM, Yinghai Lu wrote: >> > On Mon, Oct 22, 2012 at 6:19 AM, Stefano Stabellini >> >> > How about put sth: >> > --- >> > Xen mmu requires pages from this function sh

Re: [PATCH 06/19] x86, mm: setup page table in top-down

2012-10-23 Thread Yinghai Lu
On Tue, Oct 23, 2012 at 5:22 AM, Stefano Stabellini wrote: > On Mon, 22 Oct 2012, Yinghai Lu wrote: >> Can you test domU 32bit too? >> I did not test that, and looks like Jacob only test 64 bit domU too. > > Sure. It works fine. great. Do you know any simple way to test xen domU after pxe bootin

Re: [PATCH 06/19] x86, mm: setup page table in top-down

2012-10-23 Thread Stefano Stabellini
On Mon, 22 Oct 2012, Yinghai Lu wrote: > On Mon, Oct 22, 2012 at 6:19 AM, Stefano Stabellini > wrote: > > >> > The series is starting to get in good shape! > >> > I tested it on a 2G and an 8G VM and it seems to be working fine. > >> > >> domU on 32bit and 64bit? > > domU 64bit > > Can you test

Re: [PATCH 06/19] x86, mm: setup page table in top-down

2012-10-23 Thread Stefano Stabellini
On Mon, 22 Oct 2012, Yinghai Lu wrote: > On Mon, Oct 22, 2012 at 11:17 AM, Yinghai Lu wrote: > > On Mon, Oct 22, 2012 at 6:19 AM, Stefano Stabellini > > > How about put sth: > > --- > > Xen mmu requires pages from this function should be directly mapped already. > > --- > > > > or you can introdu

Re: [PATCH 06/19] x86, mm: setup page table in top-down

2012-10-22 Thread Yinghai Lu
On Mon, Oct 22, 2012 at 8:06 AM, Konrad Rzeszutek Wilk wrote: > On Thu, Oct 18, 2012 at 01:50:17PM -0700, Yinghai Lu wrote: > > You might want to mention how 'memblock' searches for regions. > Presumarily it is from top to bottom. that is not related. Will add explanation about min_pfn_mapped. >

Re: [PATCH 06/19] x86, mm: setup page table in top-down

2012-10-22 Thread Yinghai Lu
On Mon, Oct 22, 2012 at 11:17 AM, Yinghai Lu wrote: > On Mon, Oct 22, 2012 at 6:19 AM, Stefano Stabellini > How about put sth: > --- > Xen mmu requires pages from this function should be directly mapped already. > --- > > or you can introduce some doc tag specially that we can out those > assumpt

Re: [PATCH 06/19] x86, mm: setup page table in top-down

2012-10-22 Thread Yinghai Lu
On Mon, Oct 22, 2012 at 6:19 AM, Stefano Stabellini wrote: >> > The series is starting to get in good shape! >> > I tested it on a 2G and an 8G VM and it seems to be working fine. >> >> domU on 32bit and 64bit? > domU 64bit Can you test domU 32bit too? I did not test that, and looks like Jacob o

Re: [PATCH 06/19] x86, mm: setup page table in top-down

2012-10-22 Thread Konrad Rzeszutek Wilk
On Thu, Oct 18, 2012 at 01:50:17PM -0700, Yinghai Lu wrote: > Get pgt_buf early from BRK, and use it to map PMD_SIZE from top at first. > then use mapped pages to map more range below, and keep looping until ^Then ^-s > all pages get mapped. > > alloc_low_page wil

Re: [PATCH 06/19] x86, mm: setup page table in top-down

2012-10-22 Thread Konrad Rzeszutek Wilk
> Changelog is always problem now. Looks like everyone is complaining about > that. > > Actually I already tried my best on that, really don't know what to do next. Read on. I've some advice. > > > > > In particular you should state in clear letters that alloc_low_page is > > always going to re

Re: [PATCH 06/19] x86, mm: setup page table in top-down

2012-10-22 Thread Stefano Stabellini
On Fri, 19 Oct 2012, Yinghai Lu wrote: > On Fri, Oct 19, 2012 at 9:24 AM, Stefano Stabellini > wrote: > > On Thu, 18 Oct 2012, Yinghai Lu wrote: > >> Get pgt_buf early from BRK, and use it to map PMD_SIZE from top at first. > >> then use mapped pages to map more range below, and keep looping until

Re: [PATCH 06/19] x86, mm: setup page table in top-down

2012-10-19 Thread Yinghai Lu
On Fri, Oct 19, 2012 at 9:24 AM, Stefano Stabellini wrote: > On Thu, 18 Oct 2012, Yinghai Lu wrote: >> Get pgt_buf early from BRK, and use it to map PMD_SIZE from top at first. >> then use mapped pages to map more range below, and keep looping until >> all pages get mapped. >> >> alloc_low_page wi

Re: [PATCH 06/19] x86, mm: setup page table in top-down

2012-10-19 Thread Stefano Stabellini
On Thu, 18 Oct 2012, Yinghai Lu wrote: > Get pgt_buf early from BRK, and use it to map PMD_SIZE from top at first. > then use mapped pages to map more range below, and keep looping until > all pages get mapped. > > alloc_low_page will use page from BRK at first, after that buff is used up, > will

[PATCH 06/19] x86, mm: setup page table in top-down

2012-10-18 Thread Yinghai Lu
Get pgt_buf early from BRK, and use it to map PMD_SIZE from top at first. then use mapped pages to map more range below, and keep looping until all pages get mapped. alloc_low_page will use page from BRK at first, after that buff is used up, will use memblock to find and reserve page for page tabl