lkml.org 
[lkml]   [2022]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH Part2 v6 14/49] crypto: ccp: Handle the legacy TMR allocation when SNP is enabled
    On Mon, Nov 14, 2022 at 05:36:29PM -0600, Kalra, Ashish wrote:
    > But there is still added complexity of handling hugepages as part of
    > reclamation failures (both HugeTLB and transparent hugepages) and that

    Why?

    You want to offline pfns of 4K pages. What hugepages?

    > means calling more static functions in mm/memory_failure.c
    >
    > There is probably a more appropriate handler in mm/memory-failure.c:
    >
    > soft_offline_page() - this will mark the page as HWPoisoned and also has
    > handling for hugepages. And we can avoid adding a new page flag too.

    So if some other code wants to dump the amount of all hwpoisoned pages,
    it'll dump those too.

    Don't you see what is wrong with this picture?

    And btw, reusing the hwpoison flag

    PG_offlimits = PG_hwpoison

    like previously suggested doesn't help here either.

    IOW, I really don't like this lumping of semantics together. ;-\

    --
    Regards/Gruss,
    Boris.

    https://people.kernel.org/tglx/notes-about-netiquette

    \
     
     \ /
      Last update: 2022-11-15 15:29    [W:4.125 / U:0.016 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site