[PATCH v3 1/3] KVM: arm64: Add flags to kvm_hyp_memcache
Vincent Donnefort
vdonnefort at google.com
Thu Mar 13 02:16:30 PDT 2025
[...]
> > @@ -1102,7 +1102,7 @@ void free_hyp_memcache(struct kvm_hyp_memcache *mc)
> > return;
> >
> > kfree(mc->mapping);
> > - __free_hyp_memcache(mc, hyp_mc_free_fn, kvm_host_va, NULL);
> > + __free_hyp_memcache(mc, hyp_mc_free_fn, kvm_host_va, (void *)mc);
>
> Why the cast? It looks superfluous to me.
Ha yes it is now I pass mc and not mc->flags.
>
> > }
> >
> > int topup_hyp_memcache(struct kvm_hyp_memcache *mc, unsigned long min_pages)
> > @@ -1117,7 +1117,7 @@ int topup_hyp_memcache(struct kvm_hyp_memcache *mc, unsigned long min_pages)
> > }
> >
> > return __topup_hyp_memcache(mc, min_pages, hyp_mc_alloc_fn,
> > - kvm_host_pa, NULL);
> > + kvm_host_pa, (void *)mc);
>
> Same here.
>
> Thanks,
>
> M.
>
> --
> Without deviation from the norm, progress is not possible.
More information about the linux-arm-kernel
mailing list