[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Z9KiboTJy9A6qvbK@google.com>
Date: Thu, 13 Mar 2025 09:16:30 +0000
From: Vincent Donnefort <vdonnefort@...gle.com>
To: Marc Zyngier <maz@...nel.org>
Cc: oliver.upton@...ux.dev, joey.gouly@....com, suzuki.poulose@....com,
yuzenghui@...wei.com, catalin.marinas@....com, will@...nel.org,
qperret@...gle.com, linux-arm-kernel@...ts.infradead.org,
kvmarm@...ts.linux.dev, linux-kernel@...r.kernel.org,
kernel-team@...roid.com
Subject: Re: [PATCH v3 1/3] KVM: arm64: Add flags to kvm_hyp_memcache
[...]
> > @@ -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.
Powered by blists - more mailing lists