summaryrefslogtreecommitdiff
path: root/crypto/khazad.c
diff options
context:
space:
mode:
authorChristoffer Dall <christoffer.dall@linaro.org>2017-09-14 11:08:45 -0700
committerChristoffer Dall <christoffer.dall@linaro.org>2018-01-02 10:05:45 +0100
commit6c1b7521f4a07cc63bbe2dfe290efed47cdb780a (patch)
tree13582e856147158b57fccd022e6e5f0b77dc2444 /crypto/khazad.c
parent5a24575032971c5a9a4580417a791c427ebdb8e5 (diff)
KVM: arm/arm64: Factor out functionality to get vgic mmio requester_vcpu
We are about to distinguish between userspace accesses and mmio traps for a number of the mmio handlers. When the requester vcpu is NULL, it means we are handling a userspace access. Factor out the functionality to get the request vcpu into its own function, mostly so we have a common place to document the semantics of the return value. Also take the chance to move the functionality outside of holding a spinlock and instead explicitly disable and enable preemption. This supports PREEMPT_RT kernels as well. Acked-by: Marc Zyngier <marc.zyngier@arm.com> Reviewed-by: Andre Przywara <andre.przywara@arm.com> Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Diffstat (limited to 'crypto/khazad.c')
0 files changed, 0 insertions, 0 deletions