Thread (10 messages) 10 messages, 3 authors, 2026-08-24

Re: [PATCH v3 2/2] KVM: arm64: nv: Delay freeing of shadow S2 structures until VM destruction

From: "Lorenzo Stoakes (ARM)" <ljs@kernel.org>
Date: 2026-08-24 11:07:30
Also in: kvmarm, stable

On Sun, Aug 23, 2026 at 03:11:31PM +0100, Wei-Lin Chang wrote:
On Fri, Aug 21, 2026 at 05:18:29PM +0100, Marc Zyngier wrote:

[...]
quoted
+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
Ack will fix on respin :)
Thanks,
Wei-Lin Chang
quoted
+		kvfree(kvm->arch.nested_mmus[i]);
+
+	kvm->arch.nested_mmus_size = 0;
+	kvfree(kvm->arch.nested_mmus);
+}
+
[...]
--
Cheers, Lorenzo
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help