Here's my idea, tell me if it's feasible or what's wrong with it.
To make Mars hold an atmosphere indefinitely, it needs a magnetosphere to protect it from solar winds. If someone were to hollow it out and put all the ejected material on the surface until you had a hollow sphere the size of earth or bigger, you could turn the whole thing into a giant fusion reactor/Dyson shell which would have a magnetosphere.
I was thinking that by turning the inside surface into the containment system for a fusion reaction, you could slowly scale it up until you reach the point where the containment field plus the fusion itself would create enough of an EM field to ward off the solar wind.