]> asedeno.scripts.mit.edu Git - linux.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)
commit50f5bd5718df9e71d1f4ba69a6480dbad54b2f24
treef535a6172455ef91c6327acbb0bf8fd663e79630
parent7c7d2fa1cd1e9aa9b925bac409e91544eee52c03
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