ARM: new VGIC: Add TARGET registers handlers
authorAndre Przywara <andre.przywara@linaro.org>
Wed, 7 Feb 2018 17:03:50 +0000 (17:03 +0000)
committerStefano Stabellini <sstabellini@kernel.org>
Wed, 28 Mar 2018 18:17:06 +0000 (11:17 -0700)
commitc240e318617b923a6da1a0930fa473a739e8e314
tree8279d0f801ca696d78a3e3906994d885ae6b9897
parentc984adef531fc981ff0966cf6c92962e21435155
ARM: new VGIC: Add TARGET registers handlers

The target register handlers are v2 emulation specific, so their
implementation lives entirely in vgic-mmio-v2.c.
We copy the old VGIC behaviour of assigning an IRQ to the first VCPU
set in the target mask instead of making it possibly pending on
multiple VCPUs.
We update the physical affinity of a hardware mapped vIRQ on the way.

This is based on Linux commit 2c234d6f1826, written by Andre Przywara.

Signed-off-by: Andre Przywara <andre.przywara@linaro.org>
Reviewed-by: Julien Grall <julien.grall@arm.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/vgic/vgic-mmio-v2.c