Re: [PATCH 2/4] mm: introduce mm_forbids_zeropage function

2014-10-22 Thread Paolo Bonzini
Reviewed-by: Paolo Bonzini pbonz...@redhat.com On 10/22/2014 01:09 PM, Dominik Dingel wrote: Add a new function stub to allow architectures to disable for an mm_structthe backing of non-present, anonymous pages with read-only empty zero pages. Signed-off-by: Dominik Dingel

Re: [PATCH 2/4] mm: introduce mm_forbids_zeropage function

2014-10-22 Thread Andrew Morton
On Wed, 22 Oct 2014 13:09:28 +0200 Dominik Dingel din...@linux.vnet.ibm.com wrote: Add a new function stub to allow architectures to disable for an mm_structthe backing of non-present, anonymous pages with read-only empty zero pages. ... --- a/include/linux/mm.h +++ b/include/linux/mm.h

Re: [PATCH 2/4] mm: introduce mm_forbids_zeropage function

2014-10-22 Thread Dominik Dingel
On Wed, 22 Oct 2014 12:22:23 -0700 Andrew Morton a...@linux-foundation.org wrote: On Wed, 22 Oct 2014 13:09:28 +0200 Dominik Dingel din...@linux.vnet.ibm.com wrote: Add a new function stub to allow architectures to disable for an mm_structthe backing of non-present, anonymous pages with

Re: [PATCH 2/4] mm: introduce mm_forbids_zeropage function

2014-10-22 Thread Andrew Morton
On Wed, 22 Oct 2014 21:45:52 +0200 Dominik Dingel din...@linux.vnet.ibm.com wrote: +#ifndef mm_forbids_zeropage +#define mm_forbids_zeropage(X) (0) +#endif Can we document this please? What it does, why it does it. We should also specify precisely which arch header file is