[PATCH 4/5] qemu: refactor functions with removed driver if possible