[PATCH v22 06/23] KVM: arm64: Don't call vcpu_set_pauth_traps for pKVM host
Gavin Shan
gshan at redhat.com
Mon Oct 5 17:29:13 PDT 2026
On 10/5/26 7:07 PM, Suzuki K Poulose wrote:
> vcpu_set_pauth_traps() bails out and does nothing for pKVM hosts.
> Clean this up by moving the is_protected_kvm_enabled() check to the
> caller, in preparation for adding VM specific vcpu load/put callbacks.
>
> While at it, do an early return if the vcpu doesn't have ptrauth.
>
> No functional changes
>
> Signed-off-by: Suzuki K Poulose <suzuki.poulose at arm.com>
> ---
> Changes since v19:
> - New patch, since addition of this to the Refactoring patch makes it a bit
> more bigger and harder to review
> ---
> arch/arm64/kvm/arm.c | 52 +++++++++++++++++++++++---------------------
> 1 file changed, 27 insertions(+), 25 deletions(-)
>
Reviewed-by: Gavin Shan <gshan at redhat.com>
More information about the linux-arm-kernel
mailing list