Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp2295217imm; Fri, 7 Sep 2018 14:07:24 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaN30/zyfhzqqiUib40V5PjVyK8OWFJCF1c6I7QNNufJUHv/AvjZoA4ymbZ2NcUHBwar9yl X-Received: by 2002:a17:902:158b:: with SMTP id m11-v6mr9999324pla.102.1536354444095; Fri, 07 Sep 2018 14:07:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1536354444; cv=none; d=google.com; s=arc-20160816; b=0pnpUb9bK8Gfzrx8IYeY64oA7PbwC02FNS2uTU14aEbOkIadYCG2d/Ht8tw/iVrmvL 347FjRZ96gCVNVUg+7jHU57nFJaVvzPBPgex/G2ML8wb4A8CqBjp5VWZHtna54uhBOZ7 7cS4XHn/WXbOHAXeHW+e8Zk7L/aHItnhobEuJtfjsMiuxQFuQZzV5jiqRBl0eH3VXpn7 WqJyzR0FNiSFLMhCG+fRbJ9FqrTt2JOAXfqxK/oLztBNyGNOoFiIOas7P+rN3+/xNBdL UJdBnRvPZ2BaDKEAcARuZ7b5gQxPCZ6sSE9XkSuVAyFyMsezDs6O90feav67LbtJGMHR KIRA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:date:cc:to:from:subject:message-id; bh=hvrZORtyhL+Ka0GexslwhyEKPJS87+Tq9Ca0dIEyT5E=; b=pEDD7HKhTudKiSAAugWiVQ6TJRCmRiuYFuKDXBjFWPgaHKxOpzf6V7o9SS/40EK8ex R2N4LJSHcHm9VtzvGgq9roKZsRcHionrg0TVSibG8wHSyw/IhGV2ZGvRc7h5wmMOrreG +dYK3obTIrCHFl9uZmBpKNWJFko9/VDfHM5oFRDpjqw0pbHuGZ49OKjzy/lsTZvbstFa pKQLgYc8G1iqXIwVT36Ho8BOrso8X28ejBrjxMORDBXoKIKwqKq2pAJcesYhZY1qempr Is6AdmlBwQcyNqFCUHq1OdEEfFy66srTxITQeI0Q+UI+zwue3ZrRyeayiSjGT6LC3fU8 +WeA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id cc8-v6si10162553plb.69.2018.09.07.14.07.07; Fri, 07 Sep 2018 14:07:24 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727261AbeIHBsq (ORCPT + 99 others); Fri, 7 Sep 2018 21:48:46 -0400 Received: from mga01.intel.com ([192.55.52.88]:63834 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725999AbeIHBsp (ORCPT ); Fri, 7 Sep 2018 21:48:45 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Sep 2018 14:06:02 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,343,1531810800"; d="scan'208";a="89900762" Received: from sjchrist-coffee.jf.intel.com ([10.54.74.20]) by orsmga002.jf.intel.com with ESMTP; 07 Sep 2018 14:06:00 -0700 Message-ID: <1536354360.11460.29.camel@intel.com> Subject: Re: [RFC][PATCH 2/8] x86/mm: break out kernel address space handling From: Sean Christopherson To: Dave Hansen , linux-kernel@vger.kernel.org Cc: peterz@infradead.org, tglx@linutronix.de, x86@kernel.org, luto@kernel.org Date: Fri, 07 Sep 2018 14:06:00 -0700 In-Reply-To: <20180907194855.74E03836@viggo.jf.intel.com> References: <20180907194852.3C351B82@viggo.jf.intel.com> <20180907194855.74E03836@viggo.jf.intel.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.18.5.2-0ubuntu3.2 Mime-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2018-09-07 at 12:48 -0700, Dave Hansen wrote: > From: Dave Hansen > > The page fault handler (__do_page_fault())  basically has two sections: > one for handling faults in the kernel porttion of the address space > and another for faults in the user porttion of the address space. %s/porttion/portion > But, these two parts don't stick out that well.  Let's make that more > clear from code separation and naming.  Pull kernel fault > handling into its own helper, and reflect that naming by renaming > spurious_fault() -> spurious_kernel_fault(). > > Also, rewrite the vmalloc handling comment a bit.  It was a bit > stale and also glossed over the reserved bit handling.