Thread (14 messages) flat view 14 messages, 4 authors, 2021-01-08

Re: [PATCH 2/4] arm64: mte: Add asynchronous mode support

From: Vincenzo Frascino <vincenzo.frascino@arm.com>
Date: 2021-01-08 17:23:30
Also in: lkml

Hi Andrey,

On 1/8/21 1:36 PM, Andrey Konovalov wrote:
Perhaps we could add a generic arch-agnostic enum to
include/linux/kasan.h and use it in both arm64 and KASAN code?

enum kasan_hw_tags_mode {
  KASAN_HW_TAGS_SYNC,
  KASAN_HW_TAGS_ASYNC
}

Assuming other architectures that support memory tagging will end up
with sync/async mode separation as well, this should work. But even if
that doesn't happen, this interface can be adjusted later.
I am fine with this solution, I will add it in my v3.
As part of the enumeration I will add READ_SYNC mode as well, so we have all the
possible combinations.

-- 
Regards,
Vincenzo

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help