Return-path: Received: from mga09.intel.com ([134.134.136.24]) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fFgO8-000651-1s for speck@linutronix.de; Mon, 07 May 2018 15:41:13 +0200 Date: Mon, 7 May 2018 06:41:08 -0700 From: Andi Kleen Subject: [MODERATED] Re: [PATCH 3/8] L1TFv3 1 Message-ID: <20180507134108.GB4050@tassilo.jf.intel.com> References: <15668abaeb581d8d0ff089eb7643999752b10118.1525403858.git.ak@linux.intel.com> <98369c74-3d2d-c27f-d3bd-7d55edb11378@suse.cz> MIME-Version: 1.0 In-Reply-To: <98369c74-3d2d-c27f-d3bd-7d55edb11378@suse.cz> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: > I was a bit worried if this would still work with NUMA balancing > disabled, but seems we set the _PAGE_PROTNONE bit even when in that > case. Only pte_protnone() and pmd_protnone() return always 0 in that > case, but the code here doesn't use those. Yes pte/pmd_protnone semantics are a total mess. Numa balancing really should have used a differently named function for this instead of this terrible ifdef hack. That's why I'm open coding everything, to avoid this bogosity. Should be really cleaned up at some point, but I think that's out of scope for this patch kit. -Andi