Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 08 Aug 2018 19:32:03 -0000 Received: from mga05.intel.com ([192.55.52.43]) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fnUBd-00041P-Ql for speck@linutronix.de; Wed, 08 Aug 2018 21:32:02 +0200 Date: Wed, 8 Aug 2018 12:31:59 -0700 From: Andi Kleen Subject: [MODERATED] Re: [PATCH 3/4] INVERTv2 3 Message-ID: <20180808193159.GZ4238@tassilo.jf.intel.com> References: MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: On Wed, Aug 08, 2018 at 09:23:17AM +0200, speck for Thomas Gleixner wrote: > On Tue, 7 Aug 2018, speck for Andi Kleen wrote: > > > From: Andi Kleen > > Subject: x86/speculation/l1tf: Make the mmio tracer invert > > > > The mmio tracer sets io mapping PTEs and PMDs to non present when enabled. > > Make it use the right low level macros to actually invert them > > to protect against L1TF. > > > > Unfortunately I wasn't able to test this, since the procedure described > > in Documentation/trace/mmiotrace.rst doesn't result in any tracing > > activity, with or without my patch, when starting X. > > You need to make sure that the GFX driver is loaded _after_ enabling MMIO > tracing. I'll omit that for now, until we have confirmation about testing. It seems very difficult to load the gfx driver late. After wasting a lot of time trying to work around this, I managed to get the testmmiotrace module to work, and it appears the trace is working even with my patches. So the testing paragraph can be dropped. -Andi