aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorMarc Zyngier <[email protected]>2025-02-12 17:34:54 +0000
committerMarc Zyngier <[email protected]>2025-02-13 17:55:13 +0000
commit65729da9ce37f5a2c62e2542ef03bc9ac6775a7d (patch)
tree3a63dee64a913d3b054f95acfe0677ad425718dd /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parentKVM: arm64: Simplify warning in kvm_arch_vcpu_load_fp() (diff)
downloadkernel-65729da9ce37f5a2c62e2542ef03bc9ac6775a7d.tar.gz
kernel-65729da9ce37f5a2c62e2542ef03bc9ac6775a7d.zip
KVM: arm64: Convert timer offset VA when accessed in HYP code
Now that EL2 has gained some early timer emulation, it accesses the offsets pointed to by the timer structure, both of which live in the KVM structure. Of course, these are *kernel* pointers, so the dereferencing of these pointers in non-kernel code must be itself be offset. Given switch.h its own version of timer_get_offset() and use that instead. Fixes: b86fc215dc26d ("KVM: arm64: Handle counter access early in non-HYP context") Reported-by: Linux Kernel Functional Testing <[email protected]> Reviewed-by: Oliver Upton <[email protected]> Tested-by: Anders Roxell <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Marc Zyngier <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions