As vgic CPU initialisation can not be performed until the vgic type is set,
the vgic_v5 work moved the VGIC_CPUINIT() call(s) to vgic_attach_to_vm(). Calls
to VGIC_CPUCLEANUP() also needed to be moved to vgic_detach_from_vm(). This
omission could cause a segfault when destroying a vm.
Sponsored-by: Arm Ltd