]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm/arm64: Extract GICv3 max APRn index calculation
authorChristoffer Dall <cdall@linaro.org>
Fri, 1 Sep 2017 09:41:52 +0000 (11:41 +0200)
committerChristoffer Dall <cdall@linaro.org>
Tue, 5 Sep 2017 15:33:39 +0000 (17:33 +0200)
commit6b0e037709349f3b859dcaafdc0f5d28e62b2cba
treef535a6172455ef91c6327acbb0bf8fd663e79630
parente6d54ae461d0a0eacca0743094911b13e99f2f82
KVM: arm/arm64: Extract GICv3 max APRn index calculation

As we are about to access the APRs from the GICv2 uaccess interface,
make this logic generally available.

Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
arch/arm64/kvm/vgic-sys-reg-v3.c
virt/kvm/arm/vgic/vgic.h