Re: [PATCH v2 05/16] KVM: x86: Remove unused argument in gpc_unmap_khva()
From: David Woodhouse
Date: Fri Dec 02 2022 - 09:21:19 EST
On Fri, 2022-12-02 at 11:57 +0100, Michal Luczaj wrote:
> On 12/2/22 10:28, Like Xu wrote:
> > On 14/10/2022 5:12 am, Sean Christopherson wrote:
> > > Remove the unused @kvm argument from gpc_unmap_khva().
> >
> > Nit: the caller kvm_gpc_unmap() can also get rid of the unused @kvm argument.
>
> Right, the initial series cleaned up kvm_gpc_unmap() in a separate patch.
> Current iteration removes kvm_gpc_unmap() later in the series:
> https://lore.kernel.org/kvm/20221013211234.1318131-12-seanjc@xxxxxxxxxx/
I have been keeping that series up to date in
https://git.infradead.org/users/dwmw2/linux.git/shortlog/refs/heads/gpc-fixes
Now that the dust has settled on the Xen runstate area, I may post it
as v3 of the series.
Or I may attempt to resolve the gpc->len immutability thing first. I'm
still not really convinced Sean has won me round on that; I'm still
quite attached to the TOCTOU benefit of checking the length right there
at the moment you're going to use the pointer — especially given that
it *doesn't* have bounds checks like get_user() does, as Sean points
out.
Attachment:
smime.p7s
Description: S/MIME cryptographic signature