summaryrefslogtreecommitdiffstats
path: root/hw
diff options
context:
space:
mode:
authorYuval Shaia2019-03-11 11:29:14 +0100
committerMarcel Apfelbaum2019-03-16 14:52:44 +0100
commitb556c3cefcedec0fc892239f017ef7ddaa515311 (patch)
treebbf4a45e401a0daf98a0cad19d0a703de7bed14c /hw
parenthw/pvrdma: Delete pvrdma_exit function (diff)
downloadqemu-b556c3cefcedec0fc892239f017ef7ddaa515311.tar.gz
qemu-b556c3cefcedec0fc892239f017ef7ddaa515311.tar.xz
qemu-b556c3cefcedec0fc892239f017ef7ddaa515311.zip
hw/pvrdma: Unregister from shutdown notifier when device goes down
This hook was installed to close the device when VM is going down. After the device is closed there is no need to be informed on VM shutdown. Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com> Reviewed-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com> Message-Id: <1552300155-25216-11-git-send-email-yuval.shaia@oracle.com> Reviewed-by: Kamal Heib <kamalheib1@gmail.com> Signed-off-by: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/rdma/vmw/pvrdma_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/rdma/vmw/pvrdma_main.c b/hw/rdma/vmw/pvrdma_main.c
index a4afceda14..49bfbd6d41 100644
--- a/hw/rdma/vmw/pvrdma_main.c
+++ b/hw/rdma/vmw/pvrdma_main.c
@@ -311,6 +311,8 @@ static void pvrdma_fini(PCIDevice *pdev)
{
PVRDMADev *dev = PVRDMA_DEV(pdev);
+ notifier_remove(&dev->shutdown_notifier);
+
pvrdma_qp_ops_fini();
rdma_backend_stop(&dev->backend_dev);