diff options
author | Marc Zyngier <maz@kernel.org> | 2022-05-28 14:38:22 +0300 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2022-06-29 12:23:23 +0300 |
commit | eebc538d8e07e0ec759823664cbe2011a8bd885d (patch) | |
tree | 83a2938d6122d00a8dc3395f36b700e0720a43e2 /arch/arm64/kvm/arch_timer.c | |
parent | aff3ccd7320eed5814d317fcb80244f474d66a84 (diff) | |
download | linux-eebc538d8e07e0ec759823664cbe2011a8bd885d.tar.xz |
KVM: arm64: Move vcpu WFIT flag to the state flag set
The host kernel uses the WFIT flag to remember that a vcpu has used
this instruction and wake it up as required. Move it to the state
set, as nothing in the hypervisor uses this information.
Reviewed-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Reiji Watanabe <reijiw@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'arch/arm64/kvm/arch_timer.c')
-rw-r--r-- | arch/arm64/kvm/arch_timer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kvm/arch_timer.c b/arch/arm64/kvm/arch_timer.c index 4e39ace073af..5290ca5db663 100644 --- a/arch/arm64/kvm/arch_timer.c +++ b/arch/arm64/kvm/arch_timer.c @@ -242,7 +242,7 @@ static bool kvm_timer_irq_can_fire(struct arch_timer_context *timer_ctx) static bool vcpu_has_wfit_active(struct kvm_vcpu *vcpu) { return (cpus_have_final_cap(ARM64_HAS_WFXT) && - (vcpu->arch.flags & KVM_ARM64_WFIT)); + vcpu_get_flag(vcpu, IN_WFIT)); } static u64 wfit_delay_ns(struct kvm_vcpu *vcpu) |