Skip to content

Commit a5022da

Browse files
ouptonMarc Zyngier
authored andcommitted
KVM: arm64: selftests: Initialize VGICv3 only once
vgic_v3_setup() unnecessarily initializes the vgic twice. Keep the initialization after configuring MMIO frames and get rid of the other. Signed-off-by: Oliver Upton <oliver.upton@linux.dev> Reviewed-by: Zenghui Yu <yuzenghui@huawei.com> Signed-off-by: Marc Zyngier <maz@kernel.org>
1 parent 7326348 commit a5022da

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

  • tools/testing/selftests/kvm/lib/arm64

tools/testing/selftests/kvm/lib/arm64/vgic.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,6 @@ int vgic_v3_setup(struct kvm_vm *vm, unsigned int nr_vcpus, uint32_t nr_irqs)
5656

5757
kvm_device_attr_set(gic_fd, KVM_DEV_ARM_VGIC_GRP_NR_IRQS, 0, &nr_irqs);
5858

59-
kvm_device_attr_set(gic_fd, KVM_DEV_ARM_VGIC_GRP_CTRL,
60-
KVM_DEV_ARM_VGIC_CTRL_INIT, NULL);
61-
6259
attr = GICD_BASE_GPA;
6360
kvm_device_attr_set(gic_fd, KVM_DEV_ARM_VGIC_GRP_ADDR,
6461
KVM_VGIC_V3_ADDR_TYPE_DIST, &attr);

0 commit comments

Comments
 (0)