android_kernel_samsung_msm8976/arch/arm/kvm
Mark Rutland 6e7be6fc3e ARM: KVM: arch_timers: zero CNTVOFF upon return to host
commit f793c23ebbe5afd1cabf4a42a3a297022213756f upstream.

To use the virtual counters from the host, we need to ensure that
CNTVOFF doesn't change unexpectedly. When we change to a guest, we
replace the host's CNTVOFF, but we don't restore it when returning to
the host.

As the host sets CNTVOFF to zero, and never changes it, we can simply
zero CNTVOFF when returning to the host. This patch adds said zeroing to
the return to host path.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Acked-by: Christoffer Dall <cdall@cs.columbia.edu>
Cc: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2014-01-09 12:24:26 -08:00
..
arch_timer.c ARM: KVM: arch_timer: use symbolic constants 2013-04-28 22:22:57 -07:00
arm.c ARM: KVM: prevent NULL pointer dereferences with KVM VCPU ioctl 2013-06-03 10:58:56 +03:00
coproc.c ARM: KVM: Fix 64-bit coprocessor handling 2013-09-26 17:18:03 -07:00
coproc.h ARM: KVM: Fix 64-bit coprocessor handling 2013-09-26 17:18:03 -07:00
coproc_a15.c ARM: KVM: Fix 64-bit coprocessor handling 2013-09-26 17:18:03 -07:00
emulate.c ARM: KVM: move kvm_handle_wfi to handle_exit.c 2013-03-06 15:48:45 -08:00
guest.c ARM: KVM: move kvm_target_cpu to guest.c 2013-03-06 15:48:44 -08:00
handle_exit.c Merge branch 'for-linus' of git://git.linaro.org/people/rmk/linux-arm 2013-05-03 09:13:19 -07:00
init.S ARM: KVM: switch to a dual-step HYP init code 2013-04-28 22:23:10 -07:00
interrupts.S ARM: KVM: clear exclusive monitor on all exception returns 2013-08-20 08:43:03 -07:00
interrupts_head.S ARM: KVM: arch_timers: zero CNTVOFF upon return to host 2014-01-09 12:24:26 -08:00
Kconfig ARM: KVM: define KVM_ARM_MAX_VCPUS unconditionally 2013-04-28 22:23:14 -07:00
Makefile ARM: KVM: add support for minimal host vs guest profiling 2013-04-28 21:44:01 -07:00
mmio.c ARM: KVM: Fix length of mmio access 2013-03-06 16:01:51 -08:00
mmu.c arm/arm64: KVM: Fix hyp mappings of vmalloc regions 2013-11-29 11:11:50 -08:00
perf.c ARM: KVM: add support for minimal host vs guest profiling 2013-04-28 21:44:01 -07: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
vgic.c Merge branches 'devel-stable', 'entry', 'fixes', 'mach-types', 'misc' and 'smp-hotplug' into for-linus 2013-05-02 21:30:36 +01:00