From: Luyao Huang Date: Sun, 31 May 2015 13:27:25 +0000 (+0800) Subject: qemu: Need to return status of RNG device removal X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=731d9cf251a79dcec9bfe44b67182527f1438a3a;p=people%2Fliuw%2Flibxenctrl-split%2Flibvirt.git qemu: Need to return status of RNG device removal Commit id '862473fa' neglected to return the status from the qemuDomainRemoveRNGDevice call in qemuDomainRemoveDevice causing the function to always fail when receiving an RNG device unplug event. Additionally the domain status/state would not be updated in the processDeviceDeletedEvent path. Signed-off-by: Luyao Huang --- diff --git a/src/qemu/qemu_hotplug.c b/src/qemu/qemu_hotplug.c index 170768b3b..f59673089 100644 --- a/src/qemu/qemu_hotplug.c +++ b/src/qemu/qemu_hotplug.c @@ -3271,7 +3271,7 @@ qemuDomainRemoveDevice(virQEMUDriverPtr driver, ret = qemuDomainRemoveChrDevice(driver, vm, dev->data.chr); break; case VIR_DOMAIN_DEVICE_RNG: - qemuDomainRemoveRNGDevice(driver, vm, dev->data.rng); + ret = qemuDomainRemoveRNGDevice(driver, vm, dev->data.rng); break; case VIR_DOMAIN_DEVICE_MEMORY: