Re: [PATCH v12 4/5] x86/boot: Parse SRAT table from RSDP and store immovable memory

2018-12-02 Thread Chao Fan
On Fri, Nov 30, 2018 at 09:54:33AM -0500, Masayoshi Mizuma wrote: >On Fri, Nov 30, 2018 at 09:24:54AM +0800, Chao Fan wrote: >> >> /* acpitb.c */ >> >> +#ifdef CONFIG_RANDOMIZE_BASE >> >> +/* Store the amount of immovable memory regions */ >> >> +int num_immovable_mem; >> >> +#endif >> >> + >> >>

Re: [PATCH v12 4/5] x86/boot: Parse SRAT table from RSDP and store immovable memory

2018-12-02 Thread Chao Fan
On Fri, Nov 30, 2018 at 09:54:33AM -0500, Masayoshi Mizuma wrote: >On Fri, Nov 30, 2018 at 09:24:54AM +0800, Chao Fan wrote: >> >> /* acpitb.c */ >> >> +#ifdef CONFIG_RANDOMIZE_BASE >> >> +/* Store the amount of immovable memory regions */ >> >> +int num_immovable_mem; >> >> +#endif >> >> + >> >>

Re: [PATCH v12 4/5] x86/boot: Parse SRAT table from RSDP and store immovable memory

2018-11-30 Thread Masayoshi Mizuma
On Fri, Nov 30, 2018 at 09:24:54AM +0800, Chao Fan wrote: > On Thu, Nov 29, 2018 at 12:55:21PM -0500, Masayoshi Mizuma wrote: > >On Thu, Nov 29, 2018 at 04:16:30PM +0800, Chao Fan wrote: > >> To fix the conflict between KASLR and memory-hotremove, SRAT table > >> should be parsed by RSDP pointer,

Re: [PATCH v12 4/5] x86/boot: Parse SRAT table from RSDP and store immovable memory

2018-11-30 Thread Masayoshi Mizuma
On Fri, Nov 30, 2018 at 09:24:54AM +0800, Chao Fan wrote: > On Thu, Nov 29, 2018 at 12:55:21PM -0500, Masayoshi Mizuma wrote: > >On Thu, Nov 29, 2018 at 04:16:30PM +0800, Chao Fan wrote: > >> To fix the conflict between KASLR and memory-hotremove, SRAT table > >> should be parsed by RSDP pointer,

Re: [PATCH v12 4/5] x86/boot: Parse SRAT table from RSDP and store immovable memory

2018-11-29 Thread Chao Fan
On Thu, Nov 29, 2018 at 12:55:21PM -0500, Masayoshi Mizuma wrote: >On Thu, Nov 29, 2018 at 04:16:30PM +0800, Chao Fan wrote: >> To fix the conflict between KASLR and memory-hotremove, SRAT table >> should be parsed by RSDP pointer, then find the immovable >> memory regions and store them in an

Re: [PATCH v12 4/5] x86/boot: Parse SRAT table from RSDP and store immovable memory

2018-11-29 Thread Chao Fan
On Thu, Nov 29, 2018 at 12:55:21PM -0500, Masayoshi Mizuma wrote: >On Thu, Nov 29, 2018 at 04:16:30PM +0800, Chao Fan wrote: >> To fix the conflict between KASLR and memory-hotremove, SRAT table >> should be parsed by RSDP pointer, then find the immovable >> memory regions and store them in an

Re: [PATCH v12 4/5] x86/boot: Parse SRAT table from RSDP and store immovable memory

2018-11-29 Thread Masayoshi Mizuma
On Thu, Nov 29, 2018 at 04:16:30PM +0800, Chao Fan wrote: > To fix the conflict between KASLR and memory-hotremove, SRAT table > should be parsed by RSDP pointer, then find the immovable > memory regions and store them in an array called immovable_mem[]. > The array called immovable_mem[] will

Re: [PATCH v12 4/5] x86/boot: Parse SRAT table from RSDP and store immovable memory

2018-11-29 Thread Masayoshi Mizuma
On Thu, Nov 29, 2018 at 04:16:30PM +0800, Chao Fan wrote: > To fix the conflict between KASLR and memory-hotremove, SRAT table > should be parsed by RSDP pointer, then find the immovable > memory regions and store them in an array called immovable_mem[]. > The array called immovable_mem[] will

[PATCH v12 4/5] x86/boot: Parse SRAT table from RSDP and store immovable memory

2018-11-29 Thread Chao Fan
To fix the conflict between KASLR and memory-hotremove, SRAT table should be parsed by RSDP pointer, then find the immovable memory regions and store them in an array called immovable_mem[]. The array called immovable_mem[] will extern to KASLR, then KASLR will avoid to extract kernel to these

[PATCH v12 4/5] x86/boot: Parse SRAT table from RSDP and store immovable memory

2018-11-29 Thread Chao Fan
To fix the conflict between KASLR and memory-hotremove, SRAT table should be parsed by RSDP pointer, then find the immovable memory regions and store them in an array called immovable_mem[]. The array called immovable_mem[] will extern to KASLR, then KASLR will avoid to extract kernel to these