qemu-scripts refactoring.