ARM: KVM: introduce per-vcpu HYP Configuration Register
authorMarc Zyngier <marc.zyngier@arm.com>
Wed, 22 Jan 2014 09:43:38 +0000 (09:43 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 3 Mar 2014 01:15:23 +0000 (01:15 +0000)
commitac30a11e8e92a03dbe236b285c5cbae0bf563141
treefe7e8a2493f46af06b0c59c18f71ab60562b3d15
parent547f781378a22b65c2ab468f235c23001b5924da
ARM: KVM: introduce per-vcpu HYP Configuration Register

So far, KVM/ARM used a fixed HCR configuration per guest, except for
the VI/VF/VA bits to control the interrupt in absence of VGIC.

With the upcoming need to dynamically reconfigure trapping, it becomes
necessary to allow the HCR to be changed on a per-vcpu basis.

The fix here is to mimic what KVM/arm64 already does: a per vcpu HCR
field, initialized at setup time.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm/include/asm/kvm_arm.h
arch/arm/include/asm/kvm_host.h
arch/arm/kernel/asm-offsets.c
arch/arm/kvm/guest.c
arch/arm/kvm/interrupts_head.S