On Fri, 24 Sep 2021 01:10:31 +1000, Michael Ellerman wrote: > kvmppc_h_set_dabr(), and kvmppc_h_set_xdabr() which jumps into > it, need to use _GLOBAL_TOC to setup the kernel TOC pointer, because > kvmppc_h_set_dabr() uses LOAD_REG_ADDR() to load dawr_force_enable. > > When called from hcall_try_real_mode() we have the kernel TOC in r2, > established near the start of kvmppc_interrupt_hv(), so there is no > issue. > > [...]
Applied to powerpc/fixes. [1/1] KVM: PPC: Book3S HV: Use GLOBAL_TOC for kvmppc_h_set_dabr/xdabr() https://git.kernel.org/powerpc/c/dae581864609d36fb58855fd59880b4941ce9d14 cheers