]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu-attach: Assign device aliases
authorJohn Ferlan <jferlan@redhat.com>
Wed, 8 Oct 2014 22:52:26 +0000 (18:52 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 29 Oct 2014 01:12:08 +0000 (21:12 -0400)
https://bugzilla.redhat.com/show_bug.cgi?id=1141621

As part of attach processing, assign the device aliases by calling
qemuAssignDeviceAliases during qemuDomainQemuAttach once all the devices
are found after the qemuParseCommandLinePid processing.

This will alleviate a symptom that caused a libvirtd crash during an
attempted device detach.

src/qemu/qemu_driver.c

index 3ba566174177fe5f1adb4f00aeb4255d6c3f2d66..373daab7768337dfeac2dfe5ef4babc3303af00e 100644 (file)
@@ -15083,6 +15083,9 @@ static virDomainPtr qemuDomainQemuAttach(virConnectPtr conn,
     if (qemuCanonicalizeMachine(def, qemuCaps) < 0)
         goto cleanup;
 
+    if (qemuAssignDeviceAliases(def, qemuCaps) < 0)
+        goto cleanup;
+
     if (qemuDomainAssignAddresses(def, qemuCaps, NULL) < 0)
         goto cleanup;