Re: [PATCH] libnvdimm/region: Update is_nvdimm_sync check to handle volatile regions

2019-09-24 Thread Aneesh Kumar K.V
Hi Dan, On 9/24/19 10:42 PM, Dan Williams wrote: On Tue, Sep 24, 2019 at 9:57 AM Dan Williams wrote: On Tue, Sep 24, 2019 at 4:43 AM Aneesh Kumar K.V wrote: We should consider volatile regions synchronous so that we are resilient to OS crashes. This is needed when we have hypervisor like K

Re: [PATCH v6] mm/pgmap: Use correct alignment when looking at first pfn from a region

2019-09-24 Thread Aneesh Kumar K.V
Andrew Morton writes: > On Tue, 17 Sep 2019 21:01:29 +0530 "Aneesh Kumar K.V" > wrote: > >> vmem_altmap_offset() adjust the section aligned base_pfn offset. >> So we need to make sure we account for the same when computing base_pfn. >> >> ie, for altmap_valid case, our pfn_first should be: >>

Re: [PATCH v2] libnvdimm: prevent nvdimm from requesting key when security is disabled

2019-09-24 Thread Dan Williams
On Tue, Sep 24, 2019 at 10:35 AM Dave Jiang wrote: > > Current implementation attempts to request keys from the keyring even when > security is not enabled. Change behavior so when security is disabled it > will skip key request. > > Error messages seen when no keys are installed and libnvdimm is

[PATCH v2] libnvdimm: prevent nvdimm from requesting key when security is disabled

2019-09-24 Thread Dave Jiang
Current implementation attempts to request keys from the keyring even when security is not enabled. Change behavior so when security is disabled it will skip key request. Error messages seen when no keys are installed and libnvdimm is loaded: request-key[4598]: Cannot find command to construct ke

Re: [PATCH] powerpc/book3s64: Export has_transparent_hugepage() related functions.

2019-09-24 Thread Dan Williams
On Mon, Sep 23, 2019 at 9:25 PM Aneesh Kumar K.V wrote: > > In later patch, we want to use hash_transparent_hugepage() in a kernel module. > Export two related functions. > Looks good, thanks. ___ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org http

Re: [PATCH] libnvdimm/region: Update is_nvdimm_sync check to handle volatile regions

2019-09-24 Thread Dan Williams
On Tue, Sep 24, 2019 at 9:57 AM Dan Williams wrote: > > On Tue, Sep 24, 2019 at 4:43 AM Aneesh Kumar K.V > wrote: > > > > We should consider volatile regions synchronous so that we are resilient to > > OS crashes. This is needed when we have hypervisor like KVM exporting a > > ramdisk > > as pme

Re: [PATCH] libnvdimm/region: Update is_nvdimm_sync check to handle volatile regions

2019-09-24 Thread Dan Williams
On Tue, Sep 24, 2019 at 4:43 AM Aneesh Kumar K.V wrote: > > We should consider volatile regions synchronous so that we are resilient to > OS crashes. This is needed when we have hypervisor like KVM exporting a > ramdisk > as pmem dimms. We have a hard time understanding what agent is being refer

Re: [PATCH] libnvdimm/region: Update is_nvdimm_sync check to handle volatile regions

2019-09-24 Thread Pankaj Gupta
> > We should consider volatile regions synchronous so that we are resilient to > OS crashes. This is needed when we have hypervisor like KVM exporting a > ramdisk > as pmem dimms. > > Signed-off-by: Aneesh Kumar K.V > --- > drivers/nvdimm/region_devs.c | 3 +++ > 1 file changed, 3 insertions

[PATCH] libnvdimm/region: Update is_nvdimm_sync check to handle volatile regions

2019-09-24 Thread Aneesh Kumar K.V
We should consider volatile regions synchronous so that we are resilient to OS crashes. This is needed when we have hypervisor like KVM exporting a ramdisk as pmem dimms. Signed-off-by: Aneesh Kumar K.V --- drivers/nvdimm/region_devs.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drive