From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 21 Jun 2018 20:32:40 -0000 Received: from mga06.intel.com ([134.134.136.31]) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1fW6Fy-00047F-0V for speck@linutronix.de; Thu, 21 Jun 2018 22:32:38 +0200 Date: Thu, 21 Jun 2018 13:32:35 -0700 From: Andi Kleen Subject: [MODERATED] Re: [PATCH 8/8] L1TFv8 6 Message-ID: <20180621203235.GS30690@tassilo.jf.intel.com> References: <20180614150632.E064C61183@crypto-ml.lab.linutronix.de> <4ad5c4d2-7721-729e-3af6-6c8ed84dda9f@suse.cz> <260fce1e-c5fe-cace-56a8-a83c2a41f115@suse.cz> <5524ddaf-13c3-0026-0f33-057d8625e9e0@suse.cz> MIME-Version: 1.0 In-Reply-To: <5524ddaf-13c3-0026-0f33-057d8625e9e0@suse.cz> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: > ----8<---- > >From ca293624a2cc776d9d87edc9497dd406dbe460c0 Mon Sep 17 00:00:00 2001 > From: Vlastimil Babka > Date: Thu, 21 Jun 2018 12:36:29 +0200 > Subject: [PATCH] x86/speculation/l1tf: extend 64bit swap file size limit > > The previous patch has limited swap file size so that large offsets cannot > clear bits above MAX_PA/2 in the pte and interfere with L1TF mitigation. > > It assumed that offsets are encoded starting with bit 12, same as pfn. But > on x86_64, we encode offsets starting with bit 9. We can thus raise the limit > by 3 bits. That means 16TB with 42bit MAX_PA and 256TB with 46bit MAX_PA. Thanks looks good. Acked-by: Andi Kleen -Andi