OSDN Git Service

KVM: arm64: pvtime: Fix potential loss of stolen time
authorAndrew Jones <drjones@redhat.com>
Tue, 4 Aug 2020 17:06:00 +0000 (19:06 +0200)
committerMarc Zyngier <maz@kernel.org>
Fri, 21 Aug 2020 13:04:14 +0000 (14:04 +0100)
commit2dbd780e34ac53e79c6c359ce12b89ed665ef562
tree6cf98418dfa7d1f93a3888324920e8a68b56259d
parent38480df564cc68f081bb38998927d164b9010995
KVM: arm64: pvtime: Fix potential loss of stolen time

We should only check current->sched_info.run_delay once when
updating stolen time. Otherwise there's a chance there could
be a change between checks that we miss (preemption disabling
comes after vcpu request checks).

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