diff options
| author | David Brazdil <[email protected]> | 2020-12-02 18:41:09 +0000 |
|---|---|---|
| committer | Marc Zyngier <[email protected]> | 2020-12-04 10:08:34 +0000 |
| commit | 687413d34d4aa72103de3e545f431f480dd21d7f (patch) | |
| tree | 5c5c5f2bc574130b660bcfde236eb85bf1aa5184 /drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c | |
| parent | 2d7bf218ca739554bf7277ab0dbfa5399d01f7c6 (diff) | |
KVM: arm64: Support per_cpu_ptr in nVHE hyp code
When compiling with __KVM_NVHE_HYPERVISOR__, redefine per_cpu_offset()
to __hyp_per_cpu_offset() which looks up the base of the nVHE per-CPU
region of the given cpu and computes its offset from the
.hyp.data..percpu section.
This enables use of per_cpu_ptr() helpers in nVHE hyp code. Until now
only this_cpu_ptr() was supported by setting TPIDR_EL2.
Signed-off-by: David Brazdil <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_ucode.c')
0 files changed, 0 insertions, 0 deletions