[PATCH v3 2/2] KVM: arm64: nv: Delay freeing of shadow S2 structures until VM destruction
Wei-Lin Chang
weilin.chang at arm.com
Sun Aug 23 07:11:31 PDT 2026
On Fri, Aug 21, 2026 at 05:18:29PM +0100, Marc Zyngier wrote:
[...]
> +void kvm_destroy_nested(struct kvm *kvm)
> +{
> + for (int i = 0; i < kvm->arch.nested_mmus_size; i+= S2_MMU_PER_VCPU)
nit: ^ missing space
Thanks,
Wei-Lin Chang
> + kvfree(kvm->arch.nested_mmus[i]);
> +
> + kvm->arch.nested_mmus_size = 0;
> + kvfree(kvm->arch.nested_mmus);
> +}
> +
[...]
More information about the linux-arm-kernel
mailing list