]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: KVM: Add HYP per-cpu accessors
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 29 May 2018 12:11:15 +0000 (13:11 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Thu, 31 May 2018 17:00:53 +0000 (18:00 +0100)
commit77827e515025767ab3c06d8eae4d82f7435b9dc9
tree95c490c95a4435880b939673e2e5f6eafd969a90
parentb94b7b9318cf5136825cc01e804ca9798ce75e5c
arm64: KVM: Add HYP per-cpu accessors

As we're going to require to access per-cpu variables at EL2,
let's craft the minimum set of accessors required to implement
reading a per-cpu variable, relying on tpidr_el2 to contain the
per-cpu offset.

Reviewed-by: Christoffer Dall <christoffer.dall@arm.com>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/include/asm/kvm_asm.h