Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp5520716yba; Mon, 13 May 2019 12:18:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqxR2hwbLYrCQrIKVNp8YDEda3HFZrDohpAUzjSZLvxd6btSmE66NK7uQmuBlk5EWap55OGx X-Received: by 2002:a17:902:d715:: with SMTP id w21mr17082235ply.234.1557775100391; Mon, 13 May 2019 12:18:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557775100; cv=none; d=google.com; s=arc-20160816; b=thfivQolrDMfRXg4CaVNtOOsNerEOakARD5786bV+ObaP8GHNZxQQNL2Km0m8WKF+I LP4JHc66+jkzTqaC9kAGAXuv1AuDA63CUMm7vsWighjIxuwtl0pBu/H9QQsqYl2021y7 Vbxwt9qmbGhtpEjYf113pSX/i+JWEvQO0DZBXr2NOsgfD3JMD5u9QS+g3k9GQ4h95yiv EceJccGwJetX6mZcAAVW+zFNQ/Oh3VDJBoSriB3jhu98YDsyv9lhFk9O0qdO6uzoNX22 UvhictwoHy9G6wGRqzQXidaBUKyf729y/nVCBDCo2oyGDYJiQc9GLv6auo8f4oi5R8vh ZYAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=edBsAXcW3OU/rYt6NCkyRDSH54O9XLHeGVnSJB3b3Fw=; b=cmX0DWONAZuCnUsEDjwbxxX7cAc1Az0iFZQGFSFeGVENLNJrsQCcxz7BAm0Ko2ccBe L0VzHhfFK8EYMLdWD3bWn2e7utaQiimiyGbbsBeTNBSkO6dy3cAMnaO1SwjnT+a2racn oNrsLUJZHqXZDIAJPysqXsKTWkdz8R5a9KnrCIvuix+/w6xKj2jSvGH/jf54xL5VtPNM YKdgfJyPECalyuay1E4Eub6ViG3xO/UvrFybUPPQcXAVwUWxuvzZRAAu65KRLvk+cysI 3VEZTICUAGspzd9EU+o/liwMgnm6CFJnK+hKuHt26yFR7lO8oxnjw42iNI0OVBTLG5uv ehkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Os4/hJwW"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f7si18099739pgq.522.2019.05.13.12.18.04; Mon, 13 May 2019 12:18:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="Os4/hJwW"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728622AbfEMPp7 (ORCPT + 99 others); Mon, 13 May 2019 11:45:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:33674 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728224AbfEMPp7 (ORCPT ); Mon, 13 May 2019 11:45:59 -0400 Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6479721882 for ; Mon, 13 May 2019 15:45:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557762358; bh=BABeuTSqBcwBR4EDIoxeTc9kWB/TDj6EfW9QIQhsYNY=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=Os4/hJwWSkAdbGceMgGRjKFt8j+/6lOvqEBDCCCNQBIVuwuamTCRkhBSqlKoOIc3B bKg4d8F9EV+vF3Ma9/80M5RXduvPhjC/zADKDy9UjeOXh0Lpprw9DYBC66fJ2hbnW8 5AX19NgZ7HW2pLeO0tk2CRUtry4EHPrNeSrw6c9k= Received: by mail-wr1-f42.google.com with SMTP id b18so5878219wrq.12 for ; Mon, 13 May 2019 08:45:58 -0700 (PDT) X-Gm-Message-State: APjAAAV3UR29qwQibyE5t7sCAWeQA+XSrJHwxNujh0DRXsN95lIu1pmx afaBuYQFUf7a4pGqaLfwemt0eTQ/lKHKh8ykymTnpQ== X-Received: by 2002:a5d:45c7:: with SMTP id b7mr5830508wrs.176.1557762356875; Mon, 13 May 2019 08:45:56 -0700 (PDT) MIME-Version: 1.0 References: <1557758315-12667-1-git-send-email-alexandre.chartre@oracle.com> <1557758315-12667-4-git-send-email-alexandre.chartre@oracle.com> In-Reply-To: <1557758315-12667-4-git-send-email-alexandre.chartre@oracle.com> From: Andy Lutomirski Date: Mon, 13 May 2019 08:45:44 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC KVM 03/27] KVM: x86: Introduce KVM separate virtual address space To: Alexandre Chartre Cc: Paolo Bonzini , Radim Krcmar , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Dave Hansen , Andrew Lutomirski , Peter Zijlstra , kvm list , X86 ML , Linux-MM , LKML , Konrad Rzeszutek Wilk , jan.setjeeilers@oracle.com, Liran Alon , Jonathan Adams Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 13, 2019 at 7:39 AM Alexandre Chartre wrote: > > From: Liran Alon > > 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