2 Nov 2009 10:22
Re: [PATCH 02/11] Add "handle page fault" PV helper.
Ingo Molnar <mingo <at> elte.hu>
2009-11-02 09:22:14 GMT
2009-11-02 09:22:14 GMT
* Gleb Natapov <gleb <at> redhat.com> wrote: > diff --git a/arch/x86/mm/fault.c b/arch/x86/mm/fault.c > index f4cee90..14707dc 100644 > --- a/arch/x86/mm/fault.c > +++ b/arch/x86/mm/fault.c > <at> <at> -952,6 +952,9 <at> <at> do_page_fault(struct pt_regs *regs, unsigned long error_code) > int write; > int fault; > > + if (arch_handle_page_fault(regs, error_code)) > + return; > + This patch is not acceptable unless it's done cleaner. Currently we already have 3 callbacks in do_page_fault() (kmemcheck, mmiotrace, notifier), and this adds a fourth one. Please consolidate them into a single callback site, this is a hotpath on x86. And please always Cc: the x86 maintainers to patches that touch x86 code. Ingo -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo <at> kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont <at> kvack.org"> email <at> kvack.org </a>
RSS Feed