From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.7 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EC4FCC31E4B for ; Fri, 14 Jun 2019 14:21:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C50BF2173C for ; Fri, 14 Jun 2019 14:21:55 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728443AbfFNOVw (ORCPT ); Fri, 14 Jun 2019 10:21:52 -0400 Received: from Galois.linutronix.de ([146.0.238.70]:38289 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727729AbfFNOVv (ORCPT ); Fri, 14 Jun 2019 10:21:51 -0400 Received: from [5.158.153.52] (helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hbn5M-0007a1-1S; Fri, 14 Jun 2019 16:21:44 +0200 Date: Fri, 14 Jun 2019 16:21:43 +0200 (CEST) From: Thomas Gleixner To: Andy Lutomirski cc: Dave Hansen , Marius Hillenbrand , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-hardening@lists.openwall.com, linux-mm@kvack.org, Alexander Graf , David Woodhouse , the arch/x86 maintainers , Andy Lutomirski , Peter Zijlstra Subject: Re: [RFC 00/10] Process-local memory allocations for hiding KVM secrets In-Reply-To: Message-ID: References: <20190612170834.14855-1-mhillenb@amazon.de> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="8323329-1104140577-1560522104=:1722" Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --8323329-1104140577-1560522104=:1722 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT On Wed, 12 Jun 2019, Andy Lutomirski wrote: > > On Jun 12, 2019, at 12:55 PM, Dave Hansen wrote: > > > >> On 6/12/19 10:08 AM, Marius Hillenbrand wrote: > >> This patch series proposes to introduce a region for what we call > >> process-local memory into the kernel's virtual address space. > > > > It might be fun to cc some x86 folks on this series. They might have > > some relevant opinions. ;) > > > > A few high-level questions: > > > > Why go to all this trouble to hide guest state like registers if all the > > guest data itself is still mapped? > > > > Where's the context-switching code? Did I just miss it? > > > > We've discussed having per-cpu page tables where a given PGD is only in > > use from one CPU at a time. I *think* this scheme still works in such a > > case, it just adds one more PGD entry that would have to context-switched. > > Fair warning: Linus is on record as absolutely hating this idea. He might > change his mind, but it’s an uphill battle. Yes I know, but as a benefit we could get rid of all the GSBASE horrors in the entry code as we could just put the percpu space into the local PGD. Thanks, tglx --8323329-1104140577-1560522104=:1722--