]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
KVM: arm64: vgic-v3: Enable trapping of Group-1 system registers
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 9 Jun 2017 11:49:40 +0000 (12:49 +0100)
committerSeth Forshee <seth.forshee@canonical.com>
Mon, 24 Jul 2017 16:11:13 +0000 (11:11 -0500)
commit2cb66b2c0517b633fd95831308fc2feb8f25696a
tree305bc62a08eacc75b80b5f78e3b1008fa9069b14
parentf8e4d1a41299d0e757c030a8e0f6fd99a7a966f9
KVM: arm64: vgic-v3: Enable trapping of Group-1 system registers

BugLink: https://bugs.launchpad.net/bugs/1673564
In order to be able to trap Group-1 GICv3 system registers, we need to
set ICH_HCR_EL2.TALL1 before entering the guest. This is conditionally
done after having restored the guest's state, and cleared on exit.

Tested-by: Alexander Graf <agraf@suse.de>
Acked-by: David Daney <david.daney@cavium.com>
Acked-by: Christoffer Dall <cdall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
(backported from commit 9c7bfc288c71068ab323b802dba2eb87fd08b127)
[ dannf: Context adjustments ]
Signed-off-by: dann frazier <dann.frazier@canonical.com>
Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
include/linux/irqchip/arm-gic-v3.h
virt/kvm/arm/hyp/vgic-v3-sr.c
virt/kvm/arm/vgic/vgic-v3.c