diff options
author | Christoffer Dall <christoffer.dall@linaro.org> | 2017-09-14 11:08:45 -0700 |
---|---|---|
committer | Christoffer Dall <christoffer.dall@linaro.org> | 2018-01-02 10:05:45 +0100 |
commit | 6c1b7521f4a07cc63bbe2dfe290efed47cdb780a (patch) | |
tree | 13582e856147158b57fccd022e6e5f0b77dc2444 /usr/initramfs_data.S | |
parent | 5a24575032971c5a9a4580417a791c427ebdb8e5 (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 'usr/initramfs_data.S')
0 files changed, 0 insertions, 0 deletions