]> git.baikalelectronics.ru Git - 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)
committerThomas Gleixner <tglx@linutronix.de>
Wed, 23 Mar 2022 20:28:34 +0000 (21:28 +0100)
commit77e312d9d2d2ac2e4414e8b1facfc2777362394d
tree4af315a155744722016ffd8976bca223b725704a
parenta2b8e6fc3047c5ccd37186b923153d0ea312c213
selftests/x86/amx: Update the ARCH_REQ_XCOMP_PERM test

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
tools/testing/selftests/x86/amx.c