Diffusion is typically passive, sometimes (rarely) guided. But actual genome delivery usually requires energy stored in the capsid. For membraneous viruses, it's usually energy stored in the spike/fusion protein, plus some help from the host.
Note: I'm talking about energy stored in the 3D structure, not ATP molecules.