Move more functionality into qemu-exec.