Re: [PATCH v2 2/4] kaslr: select the memory region in immovable node to process

2017-11-13 Thread Baoquan He
On 11/13/17 at 05:50pm, Chao Fan wrote: > On Mon, Nov 13, 2017 at 05:26:24PM +0800, Baoquan He wrote: > >> >> +static bool select_immovable_node(struct mem_vector region, > >> >> + unsigned long long minimum, > >> >> + unsigned

Re: [PATCH v2 2/4] kaslr: select the memory region in immovable node to process

2017-11-13 Thread Baoquan He
On 11/13/17 at 05:50pm, Chao Fan wrote: > On Mon, Nov 13, 2017 at 05:26:24PM +0800, Baoquan He wrote: > >> >> +static bool select_immovable_node(struct mem_vector region, > >> >> + unsigned long long minimum, > >> >> + unsigned

Re: [PATCH v2 2/4] kaslr: select the memory region in immovable node to process

2017-11-13 Thread Chao Fan
On Mon, Nov 13, 2017 at 05:26:24PM +0800, Baoquan He wrote: >On 11/13/17 at 05:18pm, Chao Fan wrote: >> On Mon, Nov 13, 2017 at 04:31:31PM +0800, Baoquan He wrote: >> >On 11/01/17 at 07:32pm, Chao Fan wrote: >> >> Compare the region of memmap entry and immovable_mem, then choose the >> >>

Re: [PATCH v2 2/4] kaslr: select the memory region in immovable node to process

2017-11-13 Thread Chao Fan
On Mon, Nov 13, 2017 at 05:26:24PM +0800, Baoquan He wrote: >On 11/13/17 at 05:18pm, Chao Fan wrote: >> On Mon, Nov 13, 2017 at 04:31:31PM +0800, Baoquan He wrote: >> >On 11/01/17 at 07:32pm, Chao Fan wrote: >> >> Compare the region of memmap entry and immovable_mem, then choose the >> >>

Re: [PATCH v2 2/4] kaslr: select the memory region in immovable node to process

2017-11-13 Thread Baoquan He
On 11/13/17 at 05:18pm, Chao Fan wrote: > On Mon, Nov 13, 2017 at 04:31:31PM +0800, Baoquan He wrote: > >On 11/01/17 at 07:32pm, Chao Fan wrote: > >> Compare the region of memmap entry and immovable_mem, then choose the > >> intersection to process_mem_region. > >> > >> Since the

Re: [PATCH v2 2/4] kaslr: select the memory region in immovable node to process

2017-11-13 Thread Baoquan He
On 11/13/17 at 05:18pm, Chao Fan wrote: > On Mon, Nov 13, 2017 at 04:31:31PM +0800, Baoquan He wrote: > >On 11/01/17 at 07:32pm, Chao Fan wrote: > >> Compare the region of memmap entry and immovable_mem, then choose the > >> intersection to process_mem_region. > >> > >> Since the

Re: [PATCH v2 2/4] kaslr: select the memory region in immovable node to process

2017-11-13 Thread Chao Fan
On Mon, Nov 13, 2017 at 04:31:31PM +0800, Baoquan He wrote: >On 11/01/17 at 07:32pm, Chao Fan wrote: >> Compare the region of memmap entry and immovable_mem, then choose the >> intersection to process_mem_region. >> >> Since the interrelationship between e820 or efi entries and memory >> region

Re: [PATCH v2 2/4] kaslr: select the memory region in immovable node to process

2017-11-13 Thread Chao Fan
On Mon, Nov 13, 2017 at 04:31:31PM +0800, Baoquan He wrote: >On 11/01/17 at 07:32pm, Chao Fan wrote: >> Compare the region of memmap entry and immovable_mem, then choose the >> intersection to process_mem_region. >> >> Since the interrelationship between e820 or efi entries and memory >> region

Re: [PATCH v2 2/4] kaslr: select the memory region in immovable node to process

2017-11-13 Thread Baoquan He
On 11/01/17 at 07:32pm, Chao Fan wrote: > Compare the region of memmap entry and immovable_mem, then choose the > intersection to process_mem_region. > > Since the interrelationship between e820 or efi entries and memory > region in immovable_mem is different: > One memory region in one node may

Re: [PATCH v2 2/4] kaslr: select the memory region in immovable node to process

2017-11-13 Thread Baoquan He
On 11/01/17 at 07:32pm, Chao Fan wrote: > Compare the region of memmap entry and immovable_mem, then choose the > intersection to process_mem_region. > > Since the interrelationship between e820 or efi entries and memory > region in immovable_mem is different: > One memory region in one node may

Re: [PATCH v2 2/4] kaslr: select the memory region in immovable node to process

2017-11-09 Thread Chao Fan
On Fri, Nov 10, 2017 at 11:14:37AM +0800, Baoquan He wrote: >On 11/10/17 at 11:03am, Chao Fan wrote: >> On Thu, Nov 09, 2017 at 04:21:32PM +0800, Baoquan He wrote: >> >Hi Chao, >> > >> >On 11/01/17 at 07:32pm, Chao Fan wrote: >> >> Compare the region of memmap entry and immovable_mem, then choose

Re: [PATCH v2 2/4] kaslr: select the memory region in immovable node to process

2017-11-09 Thread Chao Fan
On Fri, Nov 10, 2017 at 11:14:37AM +0800, Baoquan He wrote: >On 11/10/17 at 11:03am, Chao Fan wrote: >> On Thu, Nov 09, 2017 at 04:21:32PM +0800, Baoquan He wrote: >> >Hi Chao, >> > >> >On 11/01/17 at 07:32pm, Chao Fan wrote: >> >> Compare the region of memmap entry and immovable_mem, then choose

Re: [PATCH v2 2/4] kaslr: select the memory region in immovable node to process

2017-11-09 Thread Chao Fan
On Fri, Nov 10, 2017 at 11:14:37AM +0800, Baoquan He wrote: >On 11/10/17 at 11:03am, Chao Fan wrote: >> On Thu, Nov 09, 2017 at 04:21:32PM +0800, Baoquan He wrote: >> >Hi Chao, >> > >> >On 11/01/17 at 07:32pm, Chao Fan wrote: >> >> Compare the region of memmap entry and immovable_mem, then choose

Re: [PATCH v2 2/4] kaslr: select the memory region in immovable node to process

2017-11-09 Thread Chao Fan
On Fri, Nov 10, 2017 at 11:14:37AM +0800, Baoquan He wrote: >On 11/10/17 at 11:03am, Chao Fan wrote: >> On Thu, Nov 09, 2017 at 04:21:32PM +0800, Baoquan He wrote: >> >Hi Chao, >> > >> >On 11/01/17 at 07:32pm, Chao Fan wrote: >> >> Compare the region of memmap entry and immovable_mem, then choose

Re: [PATCH v2 2/4] kaslr: select the memory region in immovable node to process

2017-11-09 Thread Baoquan He
On 11/10/17 at 11:03am, Chao Fan wrote: > On Thu, Nov 09, 2017 at 04:21:32PM +0800, Baoquan He wrote: > >Hi Chao, > > > >On 11/01/17 at 07:32pm, Chao Fan wrote: > >> Compare the region of memmap entry and immovable_mem, then choose the > >> intersection to process_mem_region. > >> > >> Since the

Re: [PATCH v2 2/4] kaslr: select the memory region in immovable node to process

2017-11-09 Thread Baoquan He
On 11/10/17 at 11:03am, Chao Fan wrote: > On Thu, Nov 09, 2017 at 04:21:32PM +0800, Baoquan He wrote: > >Hi Chao, > > > >On 11/01/17 at 07:32pm, Chao Fan wrote: > >> Compare the region of memmap entry and immovable_mem, then choose the > >> intersection to process_mem_region. > >> > >> Since the

Re: [PATCH v2 2/4] kaslr: select the memory region in immovable node to process

2017-11-09 Thread Chao Fan
On Thu, Nov 09, 2017 at 04:21:32PM +0800, Baoquan He wrote: >Hi Chao, > >On 11/01/17 at 07:32pm, Chao Fan wrote: >> Compare the region of memmap entry and immovable_mem, then choose the >> intersection to process_mem_region. >> >> Since the interrelationship between e820 or efi entries and memory

Re: [PATCH v2 2/4] kaslr: select the memory region in immovable node to process

2017-11-09 Thread Chao Fan
On Thu, Nov 09, 2017 at 04:21:32PM +0800, Baoquan He wrote: >Hi Chao, > >On 11/01/17 at 07:32pm, Chao Fan wrote: >> Compare the region of memmap entry and immovable_mem, then choose the >> intersection to process_mem_region. >> >> Since the interrelationship between e820 or efi entries and memory

Re: [PATCH v2 2/4] kaslr: select the memory region in immovable node to process

2017-11-09 Thread Chao Fan
On Thu, Nov 09, 2017 at 04:21:32PM +0800, Baoquan He wrote: >Hi Chao, > >On 11/01/17 at 07:32pm, Chao Fan wrote: >> Compare the region of memmap entry and immovable_mem, then choose the >> intersection to process_mem_region. >> >> Since the interrelationship between e820 or efi entries and memory

Re: [PATCH v2 2/4] kaslr: select the memory region in immovable node to process

2017-11-09 Thread Chao Fan
On Thu, Nov 09, 2017 at 04:21:32PM +0800, Baoquan He wrote: >Hi Chao, > >On 11/01/17 at 07:32pm, Chao Fan wrote: >> Compare the region of memmap entry and immovable_mem, then choose the >> intersection to process_mem_region. >> >> Since the interrelationship between e820 or efi entries and memory

Re: [PATCH v2 2/4] kaslr: select the memory region in immovable node to process

2017-11-09 Thread Baoquan He
Hi Chao, On 11/01/17 at 07:32pm, Chao Fan wrote: > Compare the region of memmap entry and immovable_mem, then choose the > intersection to process_mem_region. > > Since the interrelationship between e820 or efi entries and memory > region in immovable_mem is different: Could you paste a bootlog

Re: [PATCH v2 2/4] kaslr: select the memory region in immovable node to process

2017-11-09 Thread Baoquan He
Hi Chao, On 11/01/17 at 07:32pm, Chao Fan wrote: > Compare the region of memmap entry and immovable_mem, then choose the > intersection to process_mem_region. > > Since the interrelationship between e820 or efi entries and memory > region in immovable_mem is different: Could you paste a bootlog

[PATCH v2 2/4] kaslr: select the memory region in immovable node to process

2017-11-01 Thread Chao Fan
Compare the region of memmap entry and immovable_mem, then choose the intersection to process_mem_region. Since the interrelationship between e820 or efi entries and memory region in immovable_mem is different: One memory region in one node may contain several entries of e820 or efi sometimes,

[PATCH v2 2/4] kaslr: select the memory region in immovable node to process

2017-11-01 Thread Chao Fan
Compare the region of memmap entry and immovable_mem, then choose the intersection to process_mem_region. Since the interrelationship between e820 or efi entries and memory region in immovable_mem is different: One memory region in one node may contain several entries of e820 or efi sometimes,