Re: [PATCH v5 10/11] KVM: arm64: CCA: Support runtime faulting of memory

From: Steven Price

Date: Thu Dec 03 2026 - 04:49:34 EST


On 01/12/2026 19:55, Fuad Tabba wrote:
> Hi Steven,
>
> On Mon, 30 Nov 2026 14:25:31 +0000, Steven Price <steven.price@xxxxxxx> wrote:
> [...]
>> diff --git a/arch/arm64/include/asm/kvm_mmu.h b/arch/arm64/include/asm/kvm_mmu.h
> [...]
>> static inline void kvm_fault_lock(struct kvm *kvm)
>> {
>> - if (is_protected_kvm_enabled())
>> + if (kvm_vm_hyp_is_distrusting(kvm))
>
> Could you move the conversions from is_protected_kvm_enabled() to
> kvm_vm_hyp_is_distrusting() into their own patch, with the ptdump one
> from patch 11? That would make it easier to see that they don't change
> anything for pKVM VMs.

Good idea, yes that looks much nicer.

Thanks,
Steve