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

Return H_P2 on a h_set_mode(SET_DAWR) 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/kvm/book3s_hv.c