]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitca5e2500bfe31027af0c44c50730c47caf9b4aa8
treebcae1a46ea75690126df25211ba8266cc9b1b02f
parent45cfc461d0b0a94eb1502409603c8fc2fb3f92e4
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