]> asedeno.scripts.mit.edu Git - linux.git/commit
KVM: arm/arm64: Remove kvm_vgic_vcpu_early_init
authorEric Auger <eric.auger@redhat.com>
Tue, 22 May 2018 07:55:13 +0000 (09:55 +0200)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 25 May 2018 11:29:27 +0000 (12:29 +0100)
commit5ec17fbac6713be82b90f54d5a31251803fd8de5
tree8212423303cf7bedfd46500e406abf88d4b93530
parentccc27bf5be7b78f64b67902bf27f6ef484bedc2c
KVM: arm/arm64: Remove kvm_vgic_vcpu_early_init

kvm_vgic_vcpu_early_init gets called after kvm_vgic_cpu_init which
is confusing. The call path is as follows:
kvm_vm_ioctl_create_vcpu
|_ kvm_arch_cpu_create
   |_ kvm_vcpu_init
      |_ kvm_arch_vcpu_init
         |_ kvm_vgic_vcpu_init
|_ kvm_arch_vcpu_postcreate
   |_ kvm_vgic_vcpu_early_init

Static initialization currently done in kvm_vgic_vcpu_early_init()
can be moved to kvm_vgic_vcpu_init(). So let's move the code and
remove kvm_vgic_vcpu_early_init(). kvm_arch_vcpu_postcreate() does
nothing.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
include/kvm/arm_vgic.h
virt/kvm/arm/arm.c
virt/kvm/arm/vgic/vgic-init.c