[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20180908093805.GO24082@hirez.programming.kicks-ass.net>
Date: Sat, 8 Sep 2018 11:38:05 +0200
From: Peter Zijlstra <peterz@...radead.org>
To: Dave Hansen <dave.hansen@...ux.intel.com>
Cc: linux-kernel@...r.kernel.org, sean.j.christopherson@...el.com,
tglx@...utronix.de, x86@...nel.org, luto@...nel.org
Subject: Re: [RFC][PATCH 3/8] x86/mm: break out user address space handling
On Fri, Sep 07, 2018 at 12:48:57PM -0700, Dave Hansen wrote:
> +static noinline void
> +__do_page_fault(struct pt_regs *regs, unsigned long hw_error_code,
> + unsigned long address)
> +{
> + prefetchw(¤t->mm->mmap_sem);
> +
> + if (unlikely(kmmio_fault(regs, address)))
> + return;
> +
> + /* Was the fault on kernel-controlled part of the address space? */
> + if (unlikely(fault_in_kernel_space(address)))
> + do_kern_addr_space_fault(regs, hw_error_code, address);
> + else
> + do_user_addr_space_fault(regs, hw_error_code, address);
> +}
How about: do_{user,kernel}_fault() ? That _addr_space_ is just a lot of
typing for no real benefit imo.
Powered by blists - more mailing lists