KVM: arm64: Offer early resume for non-blocking WFxT instructions
authorMarc Zyngier <maz@kernel.org>
Tue, 19 Apr 2022 18:27:51 +0000 (19:27 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 20 Apr 2022 12:24:45 +0000 (13:24 +0100)
commita3fb59651449d8bd4dc4ed5413888819932c740b
treebcae1a46ea75690126df25211ba8266cc9b1b02f
parent89f5074c503b6b6f181c0240c931f67bcaf266e9
KVM: arm64: Offer early resume for non-blocking WFxT instructions

For WFxT instructions used with very small delays, it is not
unlikely that the deadline is already expired by the time we
reach the WFx handling code.

Check for this condition as soon as possible, and return to the
guest immediately if we can.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220419182755.601427-7-maz@kernel.org
arch/arm64/kvm/handle_exit.c