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