]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: Support uaccess of GICC_APRn
authorChristoffer Dall <cdall@linaro.org>
Thu, 31 Aug 2017 20:24:25 +0000 (22:24 +0200)
committerChristoffer Dall <cdall@linaro.org>
Tue, 5 Sep 2017 15:33:39 +0000 (17:33 +0200)
commita0d35c8d51ba540822b49a7c540fafe8cf38ffc3
tree915298210e091afabb92388d32e7256e853d9d96
parent6b0e037709349f3b859dcaafdc0f5d28e62b2cba
KVM: arm/arm64: Support uaccess of GICC_APRn

When migrating guests around we need to know the active priorities to
ensure functional virtual interrupt prioritization by the GIC.

This commit clarifies the API and how active priorities of interrupts in
different groups are represented, and implements the accessor functions
for the uaccess register range.

We live with a slight layering violation in accessing GICv3 data
structures from vgic-mmio-v2.c, because anything else just adds too much
complexity for us to deal with (it's not like there's a benefit
elsewhere in the code of an intermediate representation as is the case
with the VMCR).  We accept this, because while doing v3 processing from
a file named something-v2.c can look strange at first, this really is
specific to dealing with the user space interface for something that
looks like a GICv2.

Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
Documentation/virtual/kvm/devices/arm-vgic.txt
virt/kvm/arm/vgic/vgic-mmio-v2.c