Re: [PATCH v4 23/26] mm/x86: Use general page fault accounting

2020-07-02 Thread Peter Xu
Hi, Dave, On Wed, Jul 01, 2020 at 08:35:40AM -0700, Dave Hansen wrote: > On 6/30/20 1:46 PM, Peter Xu wrote: > > Use the general page fault accounting by passing regs into > > handle_mm_fault(). > ... > > - /* > > -* Major/minor page fault accounting. If any of the events > > -* returne

Re: [PATCH v4 23/26] mm/x86: Use general page fault accounting

2020-07-01 Thread Dave Hansen
On 6/30/20 1:46 PM, Peter Xu wrote: > Use the general page fault accounting by passing regs into handle_mm_fault(). ... > - /* > - * Major/minor page fault accounting. If any of the events > - * returned VM_FAULT_MAJOR, we account it as a major fault. > - */ > - if (major) {

[PATCH v4 23/26] mm/x86: Use general page fault accounting

2020-06-30 Thread Peter Xu
Use the general page fault accounting by passing regs into handle_mm_fault(). CC: Dave Hansen CC: Andy Lutomirski CC: Peter Zijlstra CC: Thomas Gleixner CC: Ingo Molnar CC: Borislav Petkov CC: x...@kernel.org CC: H. Peter Anvin Signed-off-by: Peter Xu --- arch/x86/mm/fault.c | 17 ++--