Worth mentioning...

Virtual PC, packaged as Windows XP Mode in certain copies of Windows 7 does not support Direct3D. It should only be considered for very old games since any game that requires 3D acceleration will run in software mode. Some older titles may still run well since modern CPUs are considerably faster.

Virtual PC was not designed for gaming, so that's something to keep in mind if you truly need XP to run a game.