Re: [PATCH V8 18/44] x86/fault: Add a PKS test fault hook

Edgecombe, Rick P
2022-01-31T19:57:26Z

On Thu, 2022-01-27 at 09:54 -0800, ira.weiny@intel.com wrote:
> + * If a protection key exception occurs it could be
> because a PKS test
> + * is running. If so, pks_test_callback() will clear
> the protection
> + * mechanism and return true to indicate the fault
> was handled.
> + */
> + if (pks_test_callback())
> + return;

Why do we need both this and pks_handle_key_fault()?