Re: [RFC KVM 03/27] KVM: x86: Introduce KVM separate virtual address space

From: Andy Lutomirski
Date: Mon May 13 2019 - 11:47:33 EST


On Mon, May 13, 2019 at 7:39 AM Alexandre Chartre
<alexandre.chartre@xxxxxxxxxx> wrote:
>
> From: Liran Alon <liran.alon@xxxxxxxxxx>
>
> Create a separate mm for KVM that will be active when KVM #VMExit
> handlers run. Up until the point which we architectully need to
> access host (or other VM) sensitive data.
>
> This patch just create kvm_mm but never makes it active yet.
> This will be done by next commits.

NAK to this whole pile of code. KVM is not so special that it can
duplicate core infrastructure like this. Use copy_init_mm() or
improve it as needed.

--Andy