KVM: arm64: vgic-v3: Enable trapping of Group-0 system registers
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 9 Jun 2017 11:49:45 +0000 (12:49 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Thu, 15 Jun 2017 08:45:03 +0000 (09:45 +0100)
commitabf55766f7b062234083ff612446ff8d47e2417e
treebd1496104c570f281baa206b613ca94be003550b
parenteab0b2dc4f6f34147e3d10da49ab8032e15dbea0
KVM: arm64: vgic-v3: Enable trapping of Group-0 system registers

In order to be able to trap Group-0 GICv3 system registers, we need to
set ICH_HCR_EL2.TALL0 begore entering the guest. This is conditionnaly
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>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
include/linux/irqchip/arm-gic-v3.h
virt/kvm/arm/vgic/vgic-v3.c