[PATCH v3 13/21] qemu: refactor qemuDomain[Attach|Detach]DeviceLive