[PATCH 6/9] qemu: Separate partial CPU check into a function