Re: [PATCH 2/5 V6] x86/ioremap: strengthen the logic in early_memremap_pgprot_adjust() to adjust encryption mask

2018-09-05 Thread lijiang
在 2018年09月05日 14:46, Dave Young 写道: > [snip] >> >> As previously mentioned, there are also many differences between kexec and >> kdump. In general, >> kexec needs to look at all of available physical memory, but kdump doesn't >> need. >> >> For kexec, kexec-tools will read /sys/firmware/memmap

Re: [PATCH 2/5 V6] x86/ioremap: strengthen the logic in early_memremap_pgprot_adjust() to adjust encryption mask

2018-09-05 Thread Dave Young
[snip] > > As previously mentioned, there are also many differences between kexec and > kdump. In general, > kexec needs to look at all of available physical memory, but kdump doesn't > need. > > For kexec, kexec-tools will read /sys/firmware/memmap and recreate the e820 > ranges for the 2nd

Re: [PATCH 2/5 V6] x86/ioremap: strengthen the logic in early_memremap_pgprot_adjust() to adjust encryption mask

2018-09-05 Thread lijiang
在 2018年09月04日 09:51, Dave Young 写道: > On 09/04/18 at 09:29am, Dave Young wrote: >> On 09/04/18 at 08:44am, Dave Young wrote: >>> On 09/03/18 at 10:06pm, lijiang wrote: 在 2018年09月03日 10:45, Dave Young 写道: > On 08/31/18 at 04:19pm, Lianbo Jiang wrote: >> For kdump kernel, when SME is

Re: [PATCH 2/5 V6] x86/ioremap: strengthen the logic in early_memremap_pgprot_adjust() to adjust encryption mask

2018-09-03 Thread Dave Young
On 09/04/18 at 09:29am, Dave Young wrote: > On 09/04/18 at 08:44am, Dave Young wrote: > > On 09/03/18 at 10:06pm, lijiang wrote: > > > 在 2018年09月03日 10:45, Dave Young 写道: > > > > On 08/31/18 at 04:19pm, Lianbo Jiang wrote: > > > >> For kdump kernel, when SME is enabled, the acpi table and dmi

Re: [PATCH 2/5 V6] x86/ioremap: strengthen the logic in early_memremap_pgprot_adjust() to adjust encryption mask

2018-09-03 Thread lijiang
在 2018年09月04日 08:44, Dave Young 写道: > On 09/03/18 at 10:06pm, lijiang wrote: >> 在 2018年09月03日 10:45, Dave Young 写道: >>> On 08/31/18 at 04:19pm, Lianbo Jiang wrote: For kdump kernel, when SME is enabled, the acpi table and dmi table will need to be remapped without the memory

Re: [PATCH 2/5 V6] x86/ioremap: strengthen the logic in early_memremap_pgprot_adjust() to adjust encryption mask

2018-09-03 Thread Dave Young
On 09/04/18 at 08:44am, Dave Young wrote: > On 09/03/18 at 10:06pm, lijiang wrote: > > 在 2018年09月03日 10:45, Dave Young 写道: > > > On 08/31/18 at 04:19pm, Lianbo Jiang wrote: > > >> For kdump kernel, when SME is enabled, the acpi table and dmi table will > > >> need > > >> to be remapped without

Re: [PATCH 2/5 V6] x86/ioremap: strengthen the logic in early_memremap_pgprot_adjust() to adjust encryption mask

2018-09-03 Thread Dave Young
On 09/03/18 at 10:06pm, lijiang wrote: > 在 2018年09月03日 10:45, Dave Young 写道: > > On 08/31/18 at 04:19pm, Lianbo Jiang wrote: > >> For kdump kernel, when SME is enabled, the acpi table and dmi table will > >> need > >> to be remapped without the memory encryption mask. So we have to strengthen >

Re: [PATCH 2/5 V6] x86/ioremap: strengthen the logic in early_memremap_pgprot_adjust() to adjust encryption mask

2018-09-03 Thread lijiang
在 2018年09月03日 10:45, Dave Young 写道: > On 08/31/18 at 04:19pm, Lianbo Jiang wrote: >> For kdump kernel, when SME is enabled, the acpi table and dmi table will need >> to be remapped without the memory encryption mask. So we have to strengthen >> the logic in early_memremap_pgprot_adjust(), which

Re: [PATCH 2/5 V6] x86/ioremap: strengthen the logic in early_memremap_pgprot_adjust() to adjust encryption mask

2018-09-02 Thread Dave Young
On 08/31/18 at 04:19pm, Lianbo Jiang wrote: > For kdump kernel, when SME is enabled, the acpi table and dmi table will need > to be remapped without the memory encryption mask. So we have to strengthen > the logic in early_memremap_pgprot_adjust(), which makes us have an > opportunity > to adjust