]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
selftests/x86/amx: Update the ARCH_REQ_XCOMP_PERM test
authorChang S. Bae <chang.seok.bae@intel.com>
Sat, 29 Jan 2022 17:36:47 +0000 (09:36 -0800)
committerStefan Bader <stefan.bader@canonical.com>
Thu, 5 May 2022 07:14:19 +0000 (09:14 +0200)
commitdab65365041880c8189020b488041b97bb159f5b
tree206c595cf395a71ffed9f9fec36a5568ea8fee44
parentf633bbc19f8562438fd3215855fd42895f26420f
selftests/x86/amx: Update the ARCH_REQ_XCOMP_PERM test

BugLink: https://bugs.launchpad.net/bugs/1967750
Update the arch_prctl test to check the permission bitmap whether the
requested feature is added as expected or not.

Every non-dynamic feature that is enabled is permitted already for use.
TILECFG is not dynamic feature. Ensure the bit is always on from
ARCH_GET_XCOMP_PERM.

Signed-off-by: Chang S. Bae <chang.seok.bae@intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/r/20220129173647.27981-3-chang.seok.bae@intel.com
(cherry picked from commit 20df737561484cb2d42e537663c03a7311d2b3c1)
Acked-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
tools/testing/selftests/x86/amx.c