From: Yuval Shaia Date: Mon, 11 Mar 2019 10:29:14 +0000 (-0700) Subject: hw/pvrdma: Unregister from shutdown notifier when device goes down X-Git-Tag: v4.0.0-rc0~13^2~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=b556c3cefcedec0fc892239f017ef7ddaa515311;p=thirdparty%2Fqemu.git 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 Reviewed-by: Marcel Apfelbaum Message-Id: <1552300155-25216-11-git-send-email-yuval.shaia@oracle.com> Reviewed-by: Kamal Heib Signed-off-by: Marcel Apfelbaum --- diff --git a/hw/rdma/vmw/pvrdma_main.c b/hw/rdma/vmw/pvrdma_main.c index a4afceda149..49bfbd6d419 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);