]> rtime.felk.cvut.cz Git - jailhouse.git/commit
arm: GIC: filter redistributor accesses
authorJean-Philippe Brucker <jean-philippe.brucker@arm.com>
Mon, 21 Jul 2014 09:10:54 +0000 (10:10 +0100)
committerJan Kiszka <jan.kiszka@siemens.com>
Fri, 19 Dec 2014 10:04:07 +0000 (11:04 +0100)
commit22eb13f39d844e91157dfa63512199c756327849
tree722c7684d0da1cf671dc8774ede691c3923ce852
parent653ffb750a23bb478168269dea3a8ef08b64f3c7
arm: GIC: filter redistributor accesses

Since each cell has its own set of CPU ids, they can't access the
redistributor associated to their MPIDR. Instead, the MMIO accesses are
translated to their physical redistributor, and a read to the ID
register returns the virtual affinity value.

It is a bit more expensive than simply mapping the redistributor to the
cell, but the guest rarely needs to reconfigure its PPIs and IPIs, so
this patch shouldn't introduce any significant performance loss.

Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/arch/arm/gic-v3.c
hypervisor/arch/arm/include/asm/irqchip.h
hypervisor/arch/arm/irqchip.c
hypervisor/arch/arm/mmio.c