Files
android_kernel_xiaomi_sm8450/arch/powerpc/include/asm
Alexey Kardashevskiy 2001825efc KVM: PPC: Book3S HV: Avoid lockdep debugging in TCE realmode handlers
The kvmppc_tce_to_ua() helper is called from real and virtual modes
and it works fine as long as CONFIG_DEBUG_LOCKDEP is not enabled.
However if the lockdep debugging is on, the lockdep will most likely break
in kvm_memslots() because of srcu_dereference_check() so we need to use
PPC-own kvm_memslots_raw() which uses realmode safe
rcu_dereference_raw_notrace().

This creates a realmode copy of kvmppc_tce_to_ua() which replaces
kvm_memslots() with kvm_memslots_raw().

Since kvmppc_rm_tce_to_ua() becomes static and can only be used inside
HV KVM, this moves it earlier under CONFIG_KVM_BOOK3S_HV_POSSIBLE.

This moves truly virtual-mode kvmppc_tce_to_ua() to where it belongs and
drops the prmap parameter which was never used in the virtual mode.

Fixes: d3695aa4f4 ("KVM: PPC: Add support for multiple-TCE hcalls", 2016-02-15)
Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
2019-04-30 14:43:13 +10:00
..
2019-02-22 00:10:14 +11:00
2016-03-04 23:50:27 -06:00
2018-06-03 20:32:02 +10:00
2018-12-19 18:56:32 +11:00
2016-03-01 19:27:20 +11:00
2019-01-14 20:39:27 +11:00
2019-02-23 22:31:40 +11:00
2019-03-17 12:56:31 +09:00
2019-02-18 22:41:03 +11:00
2016-06-14 13:58:26 +10:00
2018-09-18 17:52:15 -05:00
2019-02-23 22:31:40 +11:00
2016-06-14 13:58:26 +10:00
2018-05-25 12:04:43 +10:00
2018-06-03 21:19:40 +10:00
2018-07-30 22:48:21 +10:00
2018-10-20 13:26:47 +11:00
2016-06-14 13:58:26 +10:00
2017-11-12 09:03:10 +11:00