arm64: KVM: vgic-v2: Add GICV access from HYP
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 6 Sep 2016 08:28:46 +0000 (09:28 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 8 Sep 2016 10:53:00 +0000 (12:53 +0200)
commitbf8feb39642b4c71c644e2d534ce53029bd2219b
treed1431a60d21e578e1bac31afc39cc69252f290ec
parentfb5ee369ccd3986b28adc20d43d73a2b2c141977
arm64: KVM: vgic-v2: Add GICV access from HYP

Now that we have the necessary infrastructure to handle MMIO accesses
in HYP, perform the GICV access on behalf of the guest. This requires
checking that the access is strictly 32bit, properly aligned, and
falls within the expected range.

When all condition are satisfied, we perform the access and tell
the rest of the HYP code that the instruction has been correctly
emulated.

Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
include/kvm/arm_vgic.h
virt/kvm/arm/hyp/vgic-v2-sr.c