[SLOF] [PATCH v2] broken_sc1: check for H_PRIVILEGE

Thomas Huth thuth at redhat.com
Tue Apr 3 15:17:45 AEST 2018


On 03.04.2018 06:21, Nikunj A Dadhania wrote:
> Recently, found that when DAWR was disabled by linux kernel, the hcall started
> returning H_UNSUPPORTED, and VM did not boot up as broken_sc1 patched up SC
> calls falsely.
> 
> Instead of checking for various returns, check if its not in privilege mode and
> patch sc1 in that case.
> 
> CC: Michael Ellerman <michael at ellerman.id.au>
> CC: Aneesh Kumar K.V <aneesh.kumar at linux.vnet.ibm.com>
> Signed-off-by: Nikunj A Dadhania <nikunj at linux.vnet.ibm.com>
> ---
>  lib/libhvcall/brokensc1.c | 10 +++++-----
>  lib/libhvcall/libhvcall.h |  1 +
>  2 files changed, 6 insertions(+), 5 deletions(-)

Reviewed-by: Thomas Huth <thuth at redhat.com>


More information about the SLOF mailing list