]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit467f5030711283c2aa56335095d36a2b0625fdc7
tree3691d9acbc79860ecc7878e6d2d7d3a6f3b27ca4
parenta7eab5364d185f2acce934a94eb33dd9796a7c03
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