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/20240214124131.990872-1-paul.heidekrueger@tum.de... Reviewed-by: David Gow davidgow@google.com Signed-off-by: Paul Heidekrüger paul.heidekrueger@tum.de --- 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'])