[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <87h87igh6w.fsf@morokweng.localdomain>
Date: Fri, 19 Jul 2019 12:47:03 -0300
From: Thiago Jung Bauermann <bauerman@...ux.ibm.com>
To: lijiang <lijiang@...hat.com>
Cc: "Lendacky\, Thomas" <Thomas.Lendacky@....com>,
"x86\@kernel.org" <x86@...nel.org>,
"iommu\@lists.linux-foundation.org"
<iommu@...ts.linux-foundation.org>,
"linux-fsdevel\@vger.kernel.org" <linux-fsdevel@...r.kernel.org>,
"linuxppc-dev\@lists.ozlabs.org" <linuxppc-dev@...ts.ozlabs.org>,
"linux-s390\@vger.kernel.org" <linux-s390@...r.kernel.org>,
"linux-kernel\@vger.kernel.org" <linux-kernel@...r.kernel.org>,
Thomas Gleixner <tglx@...utronix.de>,
Ingo Molnar <mingo@...hat.com>, Borislav Petkov <bp@...en8.de>,
"H. Peter Anvin" <hpa@...or.com>, Christoph Hellwig <hch@....de>,
Marek Szyprowski <m.szyprowski@...sung.com>,
Robin Murphy <robin.murphy@....com>,
Konrad Rzeszutek Wilk <konrad.wilk@...cle.com>,
Alexey Dobriyan <adobriyan@...il.com>,
Halil Pasic <pasic@...ux.ibm.com>,
Mike Anderson <andmike@...ux.ibm.com>,
Ram Pai <linuxram@...ibm.com>, Baoquan He <bhe@...hat.com>
Subject: Re: [PATCH v3 5/6] fs/core/vmcore: Move sev_active() reference to x86 arch code
Hello Lianbo,
lijiang <lijiang@...hat.com> writes:
> 在 2019年07月19日 01:47, Lendacky, Thomas 写道:
>> On 7/17/19 10:28 PM, Thiago Jung Bauermann wrote:
>>> Secure Encrypted Virtualization is an x86-specific feature, so it shouldn't
>>> appear in generic kernel code because it forces non-x86 architectures to
>>> define the sev_active() function, which doesn't make a lot of sense.
>>>
>>> To solve this problem, add an x86 elfcorehdr_read() function to override
>>> the generic weak implementation. To do that, it's necessary to make
>>> read_from_oldmem() public so that it can be used outside of vmcore.c.
>>>
>>> Also, remove the export for sev_active() since it's only used in files that
>>> won't be built as modules.
>>>
>>> Signed-off-by: Thiago Jung Bauermann <bauerman@...ux.ibm.com>
>>
>> Adding Lianbo and Baoquan, who recently worked on this, for their review.
>>
>
> This change looks good to me.
>
> Reviewed-by: Lianbo Jiang <lijiang@...hat.com>
Thanks for your review!
--
Thiago Jung Bauermann
IBM Linux Technology Center
Powered by blists - more mailing lists