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

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

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

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

[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