lkml.org 
[lkml]   [2018]   [Jun]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCHv3 09/17] x86/mm: Implement page_keyid() using page_ext
From
Date
> +int page_keyid(const struct page *page)
> +{
> + if (mktme_status != MKTME_ENABLED)
> + return 0;
> +
> + return lookup_page_ext(page)->keyid;
> +}
> +EXPORT_SYMBOL(page_keyid);

Please start using a proper X86_FEATURE_* flag for this. It will give
you all the fancy static patching that you are missing by doing it this way.


\
 
 \ /
  Last update: 2018-06-13 20:20    [W:0.265 / U:2.936 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site