]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerJiri Slaby <jslaby@suse.cz>
Thu, 30 Apr 2015 09:15:04 +0000 (11:15 +0200)
commit0879aae91506bf55f8f5f4225e7fba260517dfad
tree8ae06fda8442e18088ecbd38b0ca00ab7af7f3c9
parentec5d9b94fe9eea94587c644ab7d4ca3409b74c7c
ARM: KVM: introduce per-vcpu HYP Configuration Register

commit ac30a11e8e92a03dbe236b285c5cbae0bf563141 upstream.

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>
Signed-off-by: Shannon Zhao <shannon.zhao@linaro.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
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