Re: [PATCH v22 08/23] KVM: arm64: Add vcpu load/put call backs for flavors

From: Gavin Shan

Date: Mon Oct 05 2026 - 22:15:51 EST


On 10/5/26 7:07 PM, Suzuki K Poulose wrote:
Add VM flavor specific handlers for VCPU load/put, in an effort to make it
easier to follow the code. pauth traps were removed from VMs running PKVM
as it is a no-op for them.

Based on a patch by Marc Zyngier

Suggested-by: Marc Zyngier <maz@xxxxxxxxxx>
Tested-by: Gavin Shan <gshan@xxxxxxxxxx>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@xxxxxxx>
---
Changes since v21:
- Add '&' into the KVM_VCPU_OPS() macro
---
arch/arm64/include/asm/kvm_host.h | 6 ++
arch/arm64/kvm/arm.c | 138 +++++++++++++++++++++++-------
2 files changed, 114 insertions(+), 30 deletions(-)

Reviewed-by: Gavin Shan <gshan@xxxxxxxxxx>