powerpc/watchpoint: Guest support for 2nd DAWR hcall
authorRavi Bangoria <ravi.bangoria@linux.ibm.com>
Thu, 23 Jul 2020 09:08:11 +0000 (14:38 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 26 Jul 2020 13:34:19 +0000 (23:34 +1000)
commit03f3e54abd95061ea11bdb4eedbe3cab6553704f
treed02940a478fe85fb61c45ac97dfd6c7064919cfd
parent6f3fe297f95134e9b2386dae0067bf530e1ddca0
powerpc/watchpoint: Guest support for 2nd DAWR hcall

2nd DAWR can be set/unset using H_SET_MODE hcall with resource value 5.
Enable powervm guest support with that. This has no effect on kvm guest
because kvm will return error if guest does hcall with resource value 5.

Signed-off-by: Ravi Bangoria <ravi.bangoria@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200723090813.303838-9-ravi.bangoria@linux.ibm.com
arch/powerpc/include/asm/hvcall.h
arch/powerpc/include/asm/machdep.h
arch/powerpc/include/asm/plpar_wrappers.h
arch/powerpc/kernel/dawr.c
arch/powerpc/platforms/pseries/setup.c