KVM: arm64: pvtime: Fix stolen time accounting across migration
authorAndrew Jones <drjones@redhat.com>
Tue, 4 Aug 2020 17:06:02 +0000 (19:06 +0200)
committerMarc Zyngier <maz@kernel.org>
Fri, 21 Aug 2020 13:04:14 +0000 (14:04 +0100)
commit53f985584e3c2ebe5f2455530fbf87a001528db8
tree7ad5be2d2651d8ebc4595c784a13d43b7e6a5a2c
parent4d2d4ce001f283ed8127173543b4cfb65641e357
KVM: arm64: pvtime: Fix stolen time accounting across migration

When updating the stolen time we should always read the current
stolen time from the user provided memory, not from a kernel
cache. If we use a cache then we'll end up resetting stolen time
to zero on the first update after migration.

Signed-off-by: Andrew Jones <drjones@redhat.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200804170604.42662-5-drjones@redhat.com
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/pvtime.c
include/linux/kvm_host.h