hw/arm/virt: Move post cpu realize check into its own function