Re: [PATCH v7 RESEND 4/4] kdump/vmcore: support encrypted old memory with SME enabled

2018-09-29 Thread lijiang
在 2018年09月29日 16:30, Borislav Petkov 写道: > On Sat, Sep 29, 2018 at 02:24:52PM +0800, lijiang wrote: >> At first, i added an input parameter for read_from_oldmem() because of >> encryption(SME). But >> for avoiding to also add the same parameter for copy_oldmem_page(), so i >> added a new

Re: [PATCH v7 RESEND 4/4] kdump/vmcore: support encrypted old memory with SME enabled

2018-09-29 Thread Borislav Petkov
On Sat, Sep 29, 2018 at 02:24:52PM +0800, lijiang wrote: > At first, i added an input parameter for read_from_oldmem() because of > encryption(SME). But > for avoiding to also add the same parameter for copy_oldmem_page(), so i > added a new function > copy_oldmem_page_encrypted(). Maybe you had

Re: [PATCH v7 RESEND 4/4] kdump/vmcore: support encrypted old memory with SME enabled

2018-09-29 Thread lijiang
在 2018年09月28日 16:38, Borislav Petkov 写道: > On Thu, Sep 27, 2018 at 03:19:54PM +0800, Lianbo Jiang wrote: >> In kdump kernel, we need to dump the old memory into vmcore file,if SME >> is enabled in the first kernel, we have to remap the old memory with the >> memory encryption mask, which will be

Re: [PATCH v7 RESEND 4/4] kdump/vmcore: support encrypted old memory with SME enabled

2018-09-28 Thread Borislav Petkov
On Thu, Sep 27, 2018 at 03:19:54PM +0800, Lianbo Jiang wrote: > In kdump kernel, we need to dump the old memory into vmcore file,if SME > is enabled in the first kernel, we have to remap the old memory with the > memory encryption mask, which will be automatically decrypted when we > read from

[PATCH v7 RESEND 4/4] kdump/vmcore: support encrypted old memory with SME enabled

2018-09-27 Thread Lianbo Jiang
In kdump kernel, we need to dump the old memory into vmcore file,if SME is enabled in the first kernel, we have to remap the old memory with the memory encryption mask, which will be automatically decrypted when we read from DRAM. For SME kdump, there are two cases that doesn't support: