]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Handle blocking WFIT instruction
authorMarc Zyngier <maz@kernel.org>
Tue, 19 Apr 2022 18:27:50 +0000 (19:27 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 20 Apr 2022 12:24:45 +0000 (13:24 +0100)
commit45cfc461d0b0a94eb1502409603c8fc2fb3f92e4
treecd4f418e74bc656f9277c17507e245e561bb24a2
parent4821ea3f923bf99ff1c27e687a0fcc0440888a18
KVM: arm64: Handle blocking WFIT instruction

When trapping a blocking WFIT instruction, take it into account when
computing the deadline of the background timer.

The state is tracked with a new vcpu flag, and is gated by a new
CPU capability, which isn't currently enabled.

Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20220419182755.601427-6-maz@kernel.org
arch/arm64/include/asm/kvm_host.h
arch/arm64/kvm/arch_timer.c
arch/arm64/kvm/arm.c
arch/arm64/kvm/handle_exit.c