]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Return error from h_set_dabr() on POWER9
authorMichael Neuling <mikey@neuling.org>
Tue, 27 Mar 2018 04:37:21 +0000 (15:37 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 27 Mar 2018 12:55:32 +0000 (23:55 +1100)
commit880d35acaa5bbe5e4f52db8c7157eef3e389194c
tree07da44b7f87118b72475f66ddd62b72843ceeba7
parentcce6ab3e76bdc951b7b6316404dc2d576f5a35af
KVM: PPC: Book3S HV: Return error from h_set_dabr() on POWER9

POWER7 compat mode guests can use h_set_dabr on POWER9. POWER9 should
use the DAWR but since it's disabled there we can't.

This returns H_UNSUPPORTED on a h_set_dabr() on POWER9 where the DAWR
is disabled.

Current Linux guests ignore this error, so they will silently not get
the DAWR (sigh). The same error code is being used by POWERVM in this
case.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/hvcall.h
arch/powerpc/kvm/book3s_hv_rmhandlers.S