[libvirt] [PATCH v2] qemu: Fix a regression of attaching device