Anyone know if it is a straight swap to replace the 2.5 m54 to the 3ltr version?

As in using the same mounts, gearbox etc. Is it literally just a case of unplugging one and plugging the new one in?

Would I need the 3ltr ecu/loom etc?

Am I right in saying that it is the same engine in the e60 etc?

This is only a thought at the moment.

Thanks