To me J.A.R.V.I.S seems to be a self aware AI but even then he would need hardware to run on. After seeing Iron Man 3 I am confused as to where he is actually stored. Tony's mansion is destroyed but he was still with Tony and shuts down after the Mark XLII crashes in Tennessee.
However for J.A.R.V.I.S to be able to control the Iron Man Legion wouldn't he need to be centralized at some location and i would assume, even with Tony's genius, there would be a lot of hardware involved (unless magic was used, but I don't think Tony's encounter with Thor would be enough to add magic to J.A.R.V.I.S after Avengers). So I am wondering, where is J.A.R.V.I.S located?
NOTE: if it makes a difference, I am mainly asking about the Movie continuity.