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>
This commit is contained in:
parent
a2f1dc6091
commit
b556c3cefc
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user