]> 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)
commit86301ae0ceea05213a4655780933036d06607199
treebcae1a46ea75690126df25211ba8266cc9b1b02f
parent49309db63404fe9020fec768b228a368752ede2b
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