mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
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
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue