KVM: arm/arm64: Factor out vgic_attr_regs_access functionality
authorChristoffer Dall <christoffer.dall@linaro.org>
Tue, 16 Aug 2016 14:48:20 +0000 (16:48 +0200)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 8 Sep 2016 10:53:00 +0000 (12:53 +0200)
commitba7b9169b52038ce017782479c6a24cd37f34ae5
tree8557f62c3312667d99e429285f0ecb26d7e9ba12
parent714848026531043ae06ca7bcd4a852c8bb8348c7
KVM: arm/arm64: Factor out vgic_attr_regs_access functionality

As we are about to deal with multiple data types and situations where
the vgic should not be initialized when doing userspace accesses on the
register attributes, factor out the functionality of
vgic_attr_regs_access into smaller bits which can be reused by a new
function later.

Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
virt/kvm/arm/vgic/vgic-kvm-device.c