linux/arch/arm/kvm
Marc Zyngier 1638a12d4e 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>
2013-02-11 18:58:48 +00:00
..
arm.c ARM: KVM: Keep track of currently running vcpus 2013-02-11 18:58:48 +00:00
coproc_a15.c KVM: ARM: Emulation framework and CP15 emulation 2013-01-23 13:29:13 -05:00
coproc.c KVM: ARM: VFP userspace interface 2013-01-23 13:29:15 -05:00
coproc.h KVM: ARM: Emulation framework and CP15 emulation 2013-01-23 13:29:13 -05:00
emulate.c KVM: ARM: Emulation framework and CP15 emulation 2013-01-23 13:29:13 -05:00
guest.c KVM: ARM: User space API for getting/setting co-proc registers 2013-01-23 13:29:14 -05:00
init.S KVM: ARM: Hypervisor initialization 2013-01-23 13:29:10 -05:00
interrupts_head.S KVM: ARM: World-switch implementation 2013-01-23 13:29:12 -05:00
interrupts.S KVM: ARM: World-switch implementation 2013-01-23 13:29:12 -05:00
Kconfig KVM: ARM: Memory virtualization setup 2013-01-23 13:29:11 -05:00
Makefile KVM: ARM: Power State Coordination Interface implementation 2013-01-23 13:29:18 -05:00
mmio.c KVM: ARM: Handle I/O aborts 2013-01-23 13:29:17 -05:00
mmu.c KVM: ARM: Handle I/O aborts 2013-01-23 13:29:17 -05:00
psci.c KVM: ARM: Power State Coordination Interface implementation 2013-01-23 13:29:18 -05:00
reset.c
trace.h KVM: ARM: Handle I/O aborts 2013-01-23 13:29:17 -05:00