Return-path: Received: from mx2.suse.de ([195.135.220.15]) by Galois.linutronix.de with esmtps (TLS1.0:DHE_RSA_CAMELLIA_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1fEayf-0004XB-BU for speck@linutronix.de; Fri, 04 May 2018 15:42:30 +0200 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id B9AD2AC43 for ; Fri, 4 May 2018 13:42:17 +0000 (UTC) Date: Fri, 4 May 2018 15:42:17 +0200 From: Michal Hocko Subject: [MODERATED] Re: [PATCH 1/8] L1TFv3 8 Message-ID: <20180504134217.GS4535@dhcp22.suse.cz> References: <0c2eb2235d5476b216693f1e9ec8394d58af20b3.1525403858.git.ak@linux.intel.com> MIME-Version: 1.0 In-Reply-To: <0c2eb2235d5476b216693f1e9ec8394d58af20b3.1525403858.git.ak@linux.intel.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: On Thu 03-05-18 20:23:22, speck for Andi Kleen wrote: [...] > #ifdef CONFIG_X86_PAE > -/* 44=32+12, the limit we can fit into an unsigned long pfn */ > -#define __PHYSICAL_MASK_SHIFT 44 > +/* > + * This is beyond the 44 bit limit imposed by the 32bit long pfns, > + * but we need the full mask to make sure inverted PROT_NONE > + * entries have all the host bits set in a guest. > + * The real limit is still 44 bits. I cannot find where is that limit enforced. > + */ > +#define __PHYSICAL_MASK_SHIFT 52 > #define __VIRTUAL_MASK_SHIFT 32 > > #else /* !CONFIG_X86_PAE */ Other than that this makes sense. Acked-by: Michal Hocko -- Michal Hocko SUSE Labs