Return-Path: =?utf-8?q?=3CBATV+aadd3b63fd386237c6a9+5475+infradead=2Eorg+d?= =?utf-8?q?wmw2=40twosheds=2Esrs=2Einfradead=2Eorg=3E?= Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 20 Aug 2018 20:24:32 -0000 Received: from twosheds.infradead.org ([2001:8b0:10b:1:21d:7dff:fe04:dbe2]) by Galois.linutronix.de with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from =?utf-8?q?=3CBATV+aadd3b63fd386237c6a9+5475+infradea?= =?utf-8?q?d=2Eorg+dwmw2=40twosheds=2Esrs=2Einfradead=2Eorg=3E=29?= id 1frqj0-0004uw-BM for speck@linutronix.de; Mon, 20 Aug 2018 22:24:31 +0200 Received: from [2001:8b0:10b:1::2fb] by twosheds.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1frqix-004uKe-Rb for speck@linutronix.de; Mon, 20 Aug 2018 20:24:27 +0000 Message-ID: <1534796667.10027.21.camel@infradead.org> Subject: [MODERATED] Re: Memory isolation on processes running in isolcpus. Linus, please read. From: David Woodhouse In-Reply-To: References: <20180820200608.GD29187@char.us.oracle.com> Date: Mon, 20 Aug 2018 21:24:27 +0100 Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable To: speck@linutronix.de List-ID: On Mon, 2018-08-20 at 13:14 -0700, speck for Dave Hansen wrote: > On 08/20/2018 01:06 PM, speck for Konrad Rzeszutek Wilk wrote: > > 1). Linus, you are cool with the idea of having further kernel page isola= tion which > >=C2=A0 Julian captured rather nicely: > > =E2=80=9CSpecifically, while being in the context of process A, memory of= process B > > should not be visible in the kernel. =E2=80=9C=C2=A0 >=20 > That actually sounds less effective and probably more work to do than > XPFO (https://lwn.net/Articles/700647/).=C2=A0 (Not that I'm endorsing > XPFO... the patches were still quite a mess last I looked) I don't see the distinction. I think we're basically talking about a version of XPFO =E2=80=94 taking pages out of the physmap when they belong to userspace (and other sensitive pages in-kernel that are only reasonably accessed in the context of one process, for example a VMCS and register save areas for a given vCPU). I wasn't aware of XPFO... I'll go investigate. Thanks for the pointer.