KVM: arm/arm64: Convert kvm_host_cpu_state to a static per-cpu allocation
authorJames Morse <james.morse@arm.com>
Mon, 8 Jan 2018 15:38:04 +0000 (15:38 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Sat, 13 Jan 2018 10:44:14 +0000 (10:44 +0000)
commit36989e7fd386a9a5822c48691473863f8fbb404d
tree3691d9acbc79860ecc7878e6d2d7d3a6f3b27ca4
parent32b03d1059667a39e089c45ee38ec9c16332430f
KVM: arm/arm64: Convert kvm_host_cpu_state to a static per-cpu allocation

kvm_host_cpu_state is a per-cpu allocation made from kvm_arch_init()
used to store the host EL1 registers when KVM switches to a guest.

Make it easier for ASM to generate pointers into this per-cpu memory
by making it a static allocation.

Signed-off-by: James Morse <james.morse@arm.com>
Acked-by: Christoffer Dall <cdall@linaro.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
virt/kvm/arm/arm.c