diff options
author | Alexandru Elisei <alexandru.elisei@arm.com> | 2020-12-01 15:01:54 +0000 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2020-12-23 16:43:12 +0000 |
commit | f16570ba47ff2b3766ebeaba6f4b80ad48cfd6a1 (patch) | |
tree | 3d2e69ff6108736477f7e4f769243ee175956497 /tools/perf/scripts/python/syscall-counts.py | |
parent | 3557ae187c32203d1bb8b48ee1e2e7bdb23d98d5 (diff) |
KVM: arm64: arch_timer: Remove VGIC initialization check
kvm_timer_enable() is called in kvm_vcpu_first_run_init() after
kvm_vgic_map_resources() if the VGIC wasn't ready. kvm_vgic_map_resources()
is the only place where kvm->arch.vgic.ready is set to true.
For a v2 VGIC, kvm_vgic_map_resources() will attempt to initialize the VGIC
and set the initialized flag.
For a v3 VGIC, kvm_vgic_map_resources() will return an error code if the
VGIC isn't already initialized.
The end result is that if we've reached kvm_timer_enable(), the VGIC is
initialzed and ready and vgic_initialized() will always be true, so remove
this check.
Signed-off-by: Alexandru Elisei <alexandru.elisei@arm.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
[maz: added comment about vgic initialisation, as suggested by Eric]
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20201201150157.223625-3-alexandru.elisei@arm.com
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions