Re: [PATCH] powerpc/lpar: Don't crash on H_PROTECT errors

2016-02-29 Thread Anshuman Khandual
On 03/01/2016 10:57 AM, Aneesh Kumar K.V wrote: > Tyrel Datwyler writes: > >> > On 02/29/2016 03:52 AM, Anshuman Khandual wrote: >>> >> There are certain condition in which H_PROTECT can return error code >>> >> other than H_NOT_FOUND and H_SUCCESS. One such being an attempt to >>> >> update an h

Re: powerpc/lpar: Don't crash on H_PROTECT errors

2016-02-29 Thread Anshuman Khandual
On 03/01/2016 04:31 AM, Michael Ellerman wrote: > On Mon, 2016-29-02 at 11:52:32 UTC, Anshuman Khandual wrote: >> There are certain condition in which H_PROTECT can return error code >> other than H_NOT_FOUND and H_SUCCESS. One such being an attempt to >> update an hpte owned by adjunct partition.

Re: [PATCH] powerpc/lpar: Don't crash on H_PROTECT errors

2016-02-29 Thread Aneesh Kumar K.V
Tyrel Datwyler writes: > On 02/29/2016 03:52 AM, Anshuman Khandual wrote: >> There are certain condition in which H_PROTECT can return error code >> other than H_NOT_FOUND and H_SUCCESS. One such being an attempt to >> update an hpte owned by adjunct partition. Return 0 in that case so >> that us

Re: [PATCH] powerpc/lpar: Don't crash on H_PROTECT errors

2016-02-29 Thread Anshuman Khandual
On 02/29/2016 10:20 PM, Tyrel Datwyler wrote: > On 02/29/2016 03:52 AM, Anshuman Khandual wrote: >> There are certain condition in which H_PROTECT can return error code >> other than H_NOT_FOUND and H_SUCCESS. One such being an attempt to >> update an hpte owned by adjunct partition. Return 0 in th

Re: powerpc/lpar: Don't crash on H_PROTECT errors

2016-02-29 Thread Michael Ellerman
On Mon, 2016-29-02 at 11:52:32 UTC, Anshuman Khandual wrote: > There are certain condition in which H_PROTECT can return error code > other than H_NOT_FOUND and H_SUCCESS. One such being an attempt to > update an hpte owned by adjunct partition. Return 0 in that case so > that user space will retry

Re: [PATCH] powerpc/lpar: Don't crash on H_PROTECT errors

2016-02-29 Thread Tyrel Datwyler
On 02/29/2016 03:52 AM, Anshuman Khandual wrote: > There are certain condition in which H_PROTECT can return error code > other than H_NOT_FOUND and H_SUCCESS. One such being an attempt to > update an hpte owned by adjunct partition. Return 0 in that case so > that user space will retry the access.

[PATCH] powerpc/lpar: Don't crash on H_PROTECT errors

2016-02-29 Thread Anshuman Khandual
There are certain condition in which H_PROTECT can return error code other than H_NOT_FOUND and H_SUCCESS. One such being an attempt to update an hpte owned by adjunct partition. Return 0 in that case so that user space will retry the access. In adjunct case this mean we will not make much progress