# Re: \[PATCH\] KVM: PPC: Book3S HV: Use GLOBAL\_TOC for kvmppc\_h\_set\_dabr/xdabr()

- From: Michael Ellerman \<hidden\>
- Date: 2021-11-17 11:27:59 
- List: linuxppc-dev
- Page: https://ratatoskr.run/linuxppc-dev/2021/11/9525133
- Thread: https://ratatoskr.run/linuxppc-dev/2021/09/9524491/t.md

```text
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
```
