]> xenbits.xensource.com Git - xen.git/commit
xen/arm: vgic-v2: Report the correct GICC size to the guest
authorJulien Grall <julien.grall@citrix.com>
Thu, 8 Oct 2015 18:23:51 +0000 (19:23 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 23 Oct 2015 13:25:48 +0000 (14:25 +0100)
commit8ee6d574b7073b5c98fcf94d20a53197609b85e1
treecfea528e5130401b4337f909e3aacc5aafdeb46a
parent598e97fdd0b5af28807ec262b8285eff236abdb4
xen/arm: vgic-v2: Report the correct GICC size to the guest

The GICv2 DT node is usually used by the guest to know the address/size
of the regions (GICD, GICC...) to map into their virtual memory.

While the GICv2 spec requires the size of the GICC to be 8KB, we
correctly do an 8KB stage-2 mapping but erroneously report 256 in the
device tree (based on GUEST_GICC_SIZE).

I bet we didn't see any issue so far because all the registers except
GICC_DIR lives in the first 256 bytes of the GICC region and all the
guests I have seen so far are driving the GIC with GICC_CTLR.EIOmode =
0.

Signed-off-by: Julien Grall <julien.grall@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
[ ijc -- fixed some typos in commit message ]
xen/include/public/arch-arm.h