diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2017-12-03 20:28:56 +0100 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2018-03-19 14:03:33 +0100 |
commit | 44a497abd621a71c645f06d3d545ae2f46448830 (patch) | |
tree | 61394ccb03c9e929ca279ba40baf8871cddb118b /virt | |
parent | arm64: cpufeatures: Drop the ARM64_HYP_OFFSET_LOW feature flag (diff) | |
download | linux-44a497abd621a71c645f06d3d545ae2f46448830.tar.xz linux-44a497abd621a71c645f06d3d545ae2f46448830.zip |
KVM: arm/arm64: Do not use kern_hyp_va() with kvm_vgic_global_state
kvm_vgic_global_state is part of the read-only section, and is
usually accessed using a PC-relative address generation (adrp + add).
It is thus useless to use kern_hyp_va() on it, and actively problematic
if kern_hyp_va() becomes non-idempotent. On the other hand, there is
no way that the compiler is going to guarantee that such access is
always PC relative.
So let's bite the bullet and provide our own accessor.
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Reviewed-by: James Morse <james.morse@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions