]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerSeth Forshee <seth.forshee@canonical.com>
Fri, 16 Mar 2018 15:45:14 +0000 (10:45 -0500)
commit27258798b730c7b91163b0b7ed9fe8eb008d9018
tree1d4c5ed33ddc1d4bf634d094232dd5f4d10c929c
parent42a0913261c338a7913dc30e3fd7e44b2755b152
KVM: arm/arm64: Convert kvm_host_cpu_state to a static per-cpu allocation

BugLink: http://bugs.launchpad.net/bugs/1756096
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>
(cherry picked from commit 36989e7fd386a9a5822c48691473863f8fbb404d)
Signed-off-by: Manoj Iyer <manoj.iyer@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
virt/kvm/arm/arm.c