From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-qa0-f41.google.com (mail-qa0-f41.google.com [209.85.216.41]) by kanga.kvack.org (Postfix) with ESMTP id 703086B009D for ; Sat, 28 Feb 2015 17:50:37 -0500 (EST) Received: by mail-qa0-f41.google.com with SMTP id x12so17978086qac.0 for ; Sat, 28 Feb 2015 14:50:37 -0800 (PST) Received: from gate.crashing.org (gate.crashing.org. [63.228.1.57]) by mx.google.com with ESMTPS id h13si7971674qhc.98.2015.02.28.14.50.36 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 28 Feb 2015 14:50:36 -0800 (PST) Message-ID: <1425163829.4645.152.camel@kernel.crashing.org> Subject: Re: Generic page fault (Was: libsigsegv ....) From: Benjamin Herrenschmidt Date: Sun, 01 Mar 2015 09:50:29 +1100 In-Reply-To: <1425161796.4645.149.camel@kernel.crashing.org> References: <1422361485.6648.71.camel@opensuse.org> <54C78756.9090605@suse.cz> <1422364084.6648.82.camel@opensuse.org> <1422836637.17302.9.camel@au1.ibm.com> <1425107567.4645.108.camel@kernel.crashing.org> <1425158083.4645.139.camel@kernel.crashing.org> <1425161796.4645.149.camel@kernel.crashing.org> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: owner-linux-mm@kvack.org List-ID: To: Linus Torvalds Cc: "linux-arch@vger.kernel.org" , "linux-kernel@vger.kernel.org" , linux-mm On Sun, 2015-03-01 at 09:16 +1100, Benjamin Herrenschmidt wrote: > So for error handling, I'm trying to simply return the VM_FAULT_* flags > from generic_page_fault see where that takes us. That's a way to avoid > passing an arch specific struct around. It also allows my hack to > account major faults with the hypervisor to be done outside the generic > code completely (no hook). I suspect sparc64 will defeat the "not passing an arch struct around" though... oh well. Ben. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org