Re: [PATCH v22 06/23] KVM: arm64: Don't call vcpu_set_pauth_traps for pKVM host

From: Gavin Shan

Date: Mon Oct 05 2026 - 20:31:21 EST


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@xxxxxxx>
---
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@xxxxxxxxxx>