]> asedeno.scripts.mit.edu Git - linux.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)
commit85478bab409171de501b719971fd25a3d5d639f9
tree95c490c95a4435880b939673e2e5f6eafd969a90
parent9cdc0108baa8ef87c76ed834619886a46bd70cbe
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