Re: [PATCH] mm/hwpoison: avoid speculation access after soft/hard offline
From: Andi Kleen
Date: Fri Jun 28 2024 - 01:27:58 EST
Ruidong Tian <tianruidong@xxxxxxxxxxxxxxxxx> writes:
> Page that offlined can report CE/UE event due to speculation access.
> Delete kernel 1:1 linner mapping after soft/hard offline to avoid it.
But that will split the large pages for the direct mapping, costing you
every time there is TLB pressure. You can probably do the math, with
enough uptime and a reasonable error rate aand this patch there might be
not even be 2MB pages left at some point. Cheaper to just ignore them,
since they shouldn't cause any other problems.
-Andi