Here is a more sophisticated version of my patch from earlier today. Short summary is, this adds a 'make check-vmstate' that runs quickly, and would catch a large percentage of the live migration regressions we introduce.
I hope it also shows how we can add similar things to other subsystems and build a more rigorious unit test framework within QEMU.