[PATCH v2 1/9] qemuDomainAttachHostDevice: Prepare device early and for all types