Re: [PATCH 2/2] kvm: Use huge pages for DAX-backed files

2018-11-14 Thread Pankaj Gupta
> > As this patch is dependent on PageReserved patch(which is in progress), > > just > > wondering if we are able to test the code path for hugepage with DAX. > > For testing, I used the following patch. It's not 100%, since it > intercepts at kvm_is_reserved_pfn(), and not PageReserved()

[PATCH v2 1/3] mm: make dev_pagemap_mapping_shift() externally visible

2018-11-14 Thread Barret Rhoden
KVM has a use case for determining the size of a dax mapping. The KVM code has easy access to the address and the mm; hence the change in parameters. Signed-off-by: Barret Rhoden Reviewed-by: David Hildenbrand --- include/linux/mm.h | 3 +++ mm/memory-failure.c | 38

[PATCH v2 2/3] kvm: Use huge pages for DAX-backed files

2018-11-14 Thread Barret Rhoden
This change allows KVM to map DAX-backed files made of huge pages with huge mappings in the EPT/TDP. DAX pages are not PageTransCompound. The existing check is trying to determine if the mapping for the pfn is a huge mapping or not. For non-DAX maps, e.g. hugetlbfs, that means checking

[PATCH v2 0/3] kvm: Use huge pages for DAX-backed files

2018-11-14 Thread Barret Rhoden
This patch series depends on dax pages not being PageReserved. Once that is in place, these changes will let KVM use huge pages with dax-backed files. Without the PageReserved change, KVM and DAX still work with these patches, simply without huge pages - which is the current situation.

[PATCH v2 3/3] kvm: remove redundant PageReserved() check

2018-11-14 Thread Barret Rhoden
kvm_is_reserved_pfn() already checks PageReserved(). Signed-off-by: Barret Rhoden --- virt/kvm/kvm_main.c | 8 ++-- 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c index 2679e476b6c3..e0ea6d7dac14 100644 --- a/virt/kvm/kvm_main.c +++

Re: [mm PATCH v5 0/7] Deferred page init improvements

2018-11-14 Thread Alexander Duyck
On 11/14/2018 7:07 AM, Michal Hocko wrote: On Mon 05-11-18 13:19:25, Alexander Duyck wrote: This patchset is essentially a refactor of the page initialization logic that is meant to provide for better code reuse while providing a significant improvement in deferred page initialization

Re: [PATCH v2 0/3] kvm: Use huge pages for DAX-backed files

2018-11-14 Thread Dan Williams
[ add Alex who is looking into removing PageReserved for DAX pages. ] On Wed, Nov 14, 2018 at 1:53 PM Barret Rhoden wrote: > > This patch series depends on dax pages not being PageReserved. Once > that is in place, these changes will let KVM use huge pages with > dax-backed files. Without the

Re: [mm PATCH v5 0/7] Deferred page init improvements

2018-11-14 Thread Mike Rapoport
On Wed, Nov 14, 2018 at 04:50:23PM -0800, Alexander Duyck wrote: > > > On 11/14/2018 7:07 AM, Michal Hocko wrote: > >On Mon 05-11-18 13:19:25, Alexander Duyck wrote: > >>This patchset is essentially a refactor of the page initialization logic > >>that is meant to provide for better code reuse

Re: [Ksummit-discuss] [RFC PATCH 2/3] MAINTAINERS, Handbook: Subsystem Profile

2018-11-14 Thread Julia Lawall
On Wed, 14 Nov 2018, Dan Williams wrote: > As presented at the 2018 Linux Plumbers conference [1], the Subsystem > Profile is proposed as a way to reduce friction between committers and > maintainers and perhaps encourage conversations amongst maintainers > about best practice policies. > > The

Re: [Ksummit-discuss] [RFC PATCH 2/3] MAINTAINERS, Handbook: Subsystem Profile

2018-11-14 Thread Mauro Carvalho Chehab
Em Wed, 14 Nov 2018 20:53:25 -0800 Dan Williams escreveu: > As presented at the 2018 Linux Plumbers conference [1], the Subsystem > Profile is proposed as a way to reduce friction between committers and > maintainers and perhaps encourage conversations amongst maintainers > about best practice

Re: [Ksummit-discuss] [RFC PATCH 1/3] MAINTAINERS: Reclaim the P: tag for Subsystem Profile

2018-11-14 Thread Mauro Carvalho Chehab
Em Wed, 14 Nov 2018 20:53:19 -0800 Dan Williams escreveu: > Fixup some P: entries to be M: and rename the remaining ones to 'E:' for > "entity". The P: tag will be used to indicate the location of a > Subsystem Profile for a given MAINTAINERS entry. > > Cc: Joe Perches > Signed-off-by: Dan

[RFC PATCH 2/3] MAINTAINERS, Handbook: Subsystem Profile

2018-11-14 Thread Dan Williams
As presented at the 2018 Linux Plumbers conference [1], the Subsystem Profile is proposed as a way to reduce friction between committers and maintainers and perhaps encourage conversations amongst maintainers about best practice policies. The profile contains short answers to some of the common

[RFC PATCH 1/3] MAINTAINERS: Reclaim the P: tag for Subsystem Profile

2018-11-14 Thread Dan Williams
Fixup some P: entries to be M: and rename the remaining ones to 'E:' for "entity". The P: tag will be used to indicate the location of a Subsystem Profile for a given MAINTAINERS entry. Cc: Joe Perches Signed-off-by: Dan Williams --- MAINTAINERS | 18 +- 1 file changed, 9

[RFC PATCH 3/3] libnvdimm, MAINTAINERS: Subsystem Profile

2018-11-14 Thread Dan Williams
Document the basic policies of the libnvdimm subsystem and provide a first example of a Subsystem Profile for others to duplicate and edit. Cc: Ross Zwisler Cc: Vishal Verma Cc: Dave Jiang Signed-off-by: Dan Williams --- Documentation/nvdimm/subsystem-profile.rst | 86

[RFC PATCH 0/3] Maintainer Handbook: Subsystem Profile

2018-11-14 Thread Dan Williams
At a recently concluded session at the Linux Plumbers Conference I proposed a "Subsystem Profile" as a document that a maintainer can provide to set contributor expectations and provide fodder for a discussion between maintainers about the merits of different maintainer policies. For those that

Re: [RFC PATCH 0/3] Maintainer Handbook: Subsystem Profile

2018-11-14 Thread Mauro Carvalho Chehab
Em Wed, 14 Nov 2018 20:53:13 -0800 Dan Williams escreveu: > At a recently concluded session at the Linux Plumbers Conference I > proposed a "Subsystem Profile" as a document that a maintainer can > provide to set contributor expectations and provide fodder for a > discussion between maintainers

Re: [Ksummit-discuss] [RFC PATCH 2/3] MAINTAINERS, Handbook: Subsystem Profile

2018-11-14 Thread Geert Uytterhoeven
Hi Dan, On Thu, Nov 15, 2018 at 6:05 AM Dan Williams wrote: > As presented at the 2018 Linux Plumbers conference [1], the Subsystem > Profile is proposed as a way to reduce friction between committers and > maintainers and perhaps encourage conversations amongst maintainers > about best practice

Re: [mm PATCH v5 0/7] Deferred page init improvements

2018-11-14 Thread Michal Hocko
On Mon 05-11-18 13:19:25, Alexander Duyck wrote: > This patchset is essentially a refactor of the page initialization logic > that is meant to provide for better code reuse while providing a > significant improvement in deferred page initialization performance. > > In my testing on an x86_64

Re: [mm PATCH v5 0/7] Deferred page init improvements

2018-11-14 Thread Pavel Tatashin
On 18-11-14 16:07:42, Michal Hocko wrote: > On Mon 05-11-18 13:19:25, Alexander Duyck wrote: > > This patchset is essentially a refactor of the page initialization logic > > that is meant to provide for better code reuse while providing a > > significant improvement in deferred page initialization

Re: [mm PATCH v5 0/7] Deferred page init improvements

2018-11-14 Thread Michal Hocko
On Wed 14-11-18 19:12:53, Pavel Tatashin wrote: > On 18-11-14 16:07:42, Michal Hocko wrote: > > On Mon 05-11-18 13:19:25, Alexander Duyck wrote: > > > This patchset is essentially a refactor of the page initialization logic > > > that is meant to provide for better code reuse while providing a > >