Re: [PATCH] arch/cacheflush: Introduce flush_all_caches()

2022-08-17 Thread Peter Zijlstra
On Tue, Aug 16, 2022 at 11:49:59AM -0700, Dan Williams wrote: > What would have helped is if the secure-erase and unlock definition in > the specification mandated that the device emit cache invalidations for > everything it has mapped when it is erased. However, that has some > holes, and it

Re: [PATCH] arch/cacheflush: Introduce flush_all_caches()

2022-08-17 Thread Peter Zijlstra
On Tue, Aug 16, 2022 at 10:42:03AM -0700, Dan Williams wrote: > I also think this cache_flush_region() API wants a prominent comment > clarifying the limited applicability of this API. I.e. that it is not > for general purpose usage, not for VMs, and only for select bare metal > scenarios that