lkml.org 
[lkml]   [2021]   [Sep]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [PATCH v4 5/6] x86/sgx: Hook sgx_memory_failure() into mainline code
    From
    Date
    On Fri, 2021-09-03 at 09:12 +0300, Jarkko Sakkinen wrote:
    > On Fri, 2021-08-27 at 12:55 -0700, Tony Luck wrote:
    > > +#ifdef CONFIG_X86_SGX
    > > +int sgx_memory_failure(unsigned long pfn, int flags);
    > > +bool sgx_is_epc_page(u64 paddr);
    > > +#else
    > > +static inline int sgx_memory_failure(unsigned long pfn, int flags)
    > > +{
    > > + return -ENXIO;
    > > +}
    > > +
    > > +static inline bool sgx_is_epc_page(u64 paddr)
    > > +{
    > > + return false;
    > > +}
    > > +#endif
    >
    > These decl's should be in arch/x86/include/asm/sgx.h, and as part of
    > patch that contains the implementations.

    To align with this, I wrote a small patch:

    https://lore.kernel.org/linux-sgx/20210903064156.387979-1-jarkko@kernel.org/T/#u

    /Jarkko

    \
     
     \ /
      Last update: 2021-09-03 08:57    [W:4.266 / U:0.044 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site