arm64: KVM: Encapsulate kvm_cpu_context in kvm_host_data
authorAndrew Murray <andrew.murray@arm.com>
Tue, 9 Apr 2019 19:22:11 +0000 (20:22 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Wed, 24 Apr 2019 14:35:24 +0000 (15:35 +0100)
commit630a16854d2d28d13e96ff27ab43cc5caa4609fc
treebd32195f9eb59a05c7de43a44dcc3af859a3b97f
parent21bb0ebf5d78c669ed887f30889f2d28cf6bf7db
arm64: KVM: Encapsulate kvm_cpu_context in kvm_host_data

The virt/arm core allocates a kvm_cpu_context_t percpu, at present this is
a typedef to kvm_cpu_context and is used to store host cpu context. The
kvm_cpu_context structure is also used elsewhere to hold vcpu context.
In order to use the percpu to hold additional future host information we
encapsulate kvm_cpu_context in a new structure and rename the typedef and
percpu to match.

Signed-off-by: Andrew Murray <andrew.murray@arm.com>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/include/asm/kvm_host.h
arch/arm64/include/asm/kvm_asm.h
arch/arm64/include/asm/kvm_host.h
arch/arm64/kernel/asm-offsets.c
virt/kvm/arm/arm.c