diff options
author | 2017-09-14 11:08:45 -0700 | |
---|---|---|
committer | 2018-01-02 10:05:45 +0100 | |
commit | 6c1b7521f4a07cc63bbe2dfe290efed47cdb780a (patch) | |
tree | 13582e856147158b57fccd022e6e5f0b77dc2444 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | KVM: arm/arm64: Remove redundant preemptible checks (diff) | |
download | linux-dev-6c1b7521f4a07cc63bbe2dfe290efed47cdb780a.tar.xz linux-dev-6c1b7521f4a07cc63bbe2dfe290efed47cdb780a.zip |
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 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions