The film is ... filmed in/with real aircraft too. Obviously there are stand in effects when they're exploding missiles, but the in-cockpit shots are all practical "effects" of the actors sitting in second seat. Real canopies, real g-forces, etc. Pretty cool!
First time: https://youtu.be/zlWmeo-4ulw?t=72
Second time: https://www.youtube.com/watch?v=3nwBwJiyQ_g
Tom Cruise is kind of a weirdo but his films are incredibly entertaining.