Commit 08344cd9 authored by Zenghui Yu's avatar Zenghui Yu Committed by Dongxu Sun
Browse files

KVM: arm64: arch_timer: Make vtimer_irqbypass a Distributor attr

virt inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I8K89F


CVE: NA

------------------------------------------------------------------

Having the vtimer_irqbypass flag in the per-vcpu structure is actually
pointless, as we will keep the vtimer interrupt delivery capability the
same among all vcpus (either direct injection via MBIGEN-ITS-RDist, or
purely emulated by KVM).

Let's instead make it a Distributor attribute. This way, we configure the
vtimer information for *all* vcpus in kvm_vtimer_config(), in one go.
Otherwise we need to configure it for each vcpu in its first run (we may
end-up missing the activation of vtimer interrupt for some vcpus whose
vtimer_info hasn't been configures yet, and bad things will happen...).

Signed-off-by: default avatarZenghui Yu <yuzenghui@huawei.com>
Signed-off-by: default avatarKunkun Jiang <jiangkunkun@huawei.com>
Signed-off-by: default avatarDongxu Sun <sundongxu3@huawei.com>
parent 3ad7c505
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment