diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2013-01-22 04:36:11 +0400 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2013-02-11 22:58:48 +0400 |
commit | 1638a12d4ee519ed397f4b9e6c088faed155d164 (patch) | |
tree | 7317fd8e6c91eccd62d9ad5d581037f868e65256 /arch/arm/kvm/coproc.c | |
parent | 3401d54696f992edf036f00f46c8c399d1b75c2a (diff) | |
download | linux-1638a12d4ee519ed397f4b9e6c088faed155d164.tar.xz |
ARM: KVM: Keep track of currently running vcpus
When an interrupt occurs for the guest, it is sometimes necessary
to find out which vcpu was running at that point.
Keep track of which vcpu is being run in kvm_arch_vcpu_ioctl_run(),
and allow the data to be retrieved using either:
- kvm_arm_get_running_vcpu(): returns the vcpu running at this point
on the current CPU. Can only be used in a non-preemptible context.
- kvm_arm_get_running_vcpus(): returns the per-CPU variable holding
the running vcpus, usable for per-CPU interrupts.
Reviewed-by: Will Deacon <will.deacon@arm.com>
Signed-off-by: Christoffer Dall <c.dall@virtualopensystems.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'arch/arm/kvm/coproc.c')
0 files changed, 0 insertions, 0 deletions