lkml.org 
[lkml]   [2018]   [Mar]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH 10/14] set_memory.h: provide set_memory_{en,de}crypted stubs
    From
    Date
    On 3/19/2018 5:38 AM, Christoph Hellwig wrote:
    > Signed-off-by: Christoph Hellwig <hch@lst.de>
    > Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>

    Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>

    > ---
    > include/linux/set_memory.h | 12 ++++++++++++
    > 1 file changed, 12 insertions(+)
    >
    > diff --git a/include/linux/set_memory.h b/include/linux/set_memory.h
    > index e5140648f638..da5178216da5 100644
    > --- a/include/linux/set_memory.h
    > +++ b/include/linux/set_memory.h
    > @@ -17,4 +17,16 @@ static inline int set_memory_x(unsigned long addr, int numpages) { return 0; }
    > static inline int set_memory_nx(unsigned long addr, int numpages) { return 0; }
    > #endif
    >
    > +#ifndef CONFIG_ARCH_HAS_MEM_ENCRYPT
    > +static inline int set_memory_encrypted(unsigned long addr, int numpages)
    > +{
    > + return 0;
    > +}
    > +
    > +static inline int set_memory_decrypted(unsigned long addr, int numpages)
    > +{
    > + return 0;
    > +}
    > +#endif /* CONFIG_ARCH_HAS_MEM_ENCRYPT */
    > +
    > #endif /* _LINUX_SET_MEMORY_H_ */
    >

    \
     
     \ /
      Last update: 2018-03-19 15:22    [W:2.798 / U:0.144 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site