Tests relying on the ARM Memory Tagging Extension (MTE) may crash when
the corresponding qemu option, which is available since qemu 6.2, is not
explicitly passed to kunit_tool via the command line.

To make life easier, enable MTE by default for kunit_tool's arm64
qemu config.

Link: 
https://lore.kernel.org/all/[email protected]/T/#u
Reviewed-by: David Gow <[email protected]>
Signed-off-by: Paul Heidekrüger <[email protected]>
---
 tools/testing/kunit/qemu_configs/arm64.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/testing/kunit/qemu_configs/arm64.py 
b/tools/testing/kunit/qemu_configs/arm64.py
index d3ff27024755..a525f7e1093b 100644
--- a/tools/testing/kunit/qemu_configs/arm64.py
+++ b/tools/testing/kunit/qemu_configs/arm64.py
@@ -9,4 +9,4 @@ CONFIG_SERIAL_AMBA_PL011_CONSOLE=y''',
                           qemu_arch='aarch64',
                           kernel_path='arch/arm64/boot/Image.gz',
                           kernel_command_line='console=ttyAMA0',
-                          extra_qemu_params=['-machine', 'virt', '-cpu', 
'max,pauth-impdef=on'])
+                          extra_qemu_params=['-machine', 'virt,mte=on', 
'-cpu', 'max,pauth-impdef=on'])
-- 
2.40.1


Reply via email to