Re: [PATCH v2] selftests: x86: skip the tests if prerequisites aren't fulfilled

From: Chang S. Bae
Date: Tue Mar 26 2024 - 17:20:35 EST


On 3/26/2024 1:51 PM, Shuah Khan wrote:

show that there are bo backwards compatibility issues
In older kernels lacking AMX support [1], arch_prctl() returns EINVAL. With AMX support, the kernel will properly set 'features'.

It is also worth noting that this simplification was previously acknowledged [2], albeit some time ago.

Thanks,
Chang

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=db8268df0983adc2bb1fb48c9e5f7bfbb5f617f3
[2] https://lore.kernel.org/lkml/de61ffdb-638a-ca84-31b5-55f6a8616597@xxxxxxxxxxxxxxxxxxx/