From: Yuval Shaia <yuval.shaia@oracle.com>
To: dgilbert@redhat.com, yuval.shaia@oracle.com,
marcel.apfelbaum@gmail.com, armbru@redhat.com,
qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH v3 9/9] hw/pvrdma: Unregister from shutdown notifier when device goes down
Date: Wed, 27 Feb 2019 16:06:29 +0200 [thread overview]
Message-ID: <20190227140629.1569-10-yuval.shaia@oracle.com> (raw)
In-Reply-To: <20190227140629.1569-1-yuval.shaia@oracle.com>
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>
---
hw/rdma/vmw/pvrdma_main.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/rdma/vmw/pvrdma_main.c b/hw/rdma/vmw/pvrdma_main.c
index 7727b8ddda..a9efcbfe70 100644
--- a/hw/rdma/vmw/pvrdma_main.c
+++ b/hw/rdma/vmw/pvrdma_main.c
@@ -359,6 +359,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);
--
2.17.2
prev parent reply other threads:[~2019-02-27 14:07 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-27 14:06 [Qemu-devel] [PATCH v3 0/9] Misc fixes to pvrdma device Yuval Shaia
2019-02-27 14:06 ` [Qemu-devel] [PATCH v3 1/9] hw/rdma: Switch to generic error reporting way Yuval Shaia
2019-02-27 14:06 ` [Qemu-devel] [PATCH v3 2/9] hw/rdma: Introduce protected qlist Yuval Shaia
2019-02-27 14:06 ` [Qemu-devel] [PATCH v3 3/9] hw/rdma: Protect against concurrent execution of poll_cq Yuval Shaia
2019-02-27 14:06 ` [Qemu-devel] [PATCH v3 4/9] {monitor, hw/pvrdma}: Expose device internals via monitor interface Yuval Shaia
2019-02-28 8:35 ` Marcel Apfelbaum
2019-02-28 9:01 ` Yuval Shaia
2019-02-28 10:34 ` Marcel Apfelbaum
2019-03-01 7:17 ` Markus Armbruster
2019-03-01 12:28 ` Yuval Shaia
2019-03-01 15:31 ` Markus Armbruster
2019-03-06 10:18 ` Yuval Shaia
2019-03-03 9:14 ` Marcel Apfelbaum
2019-02-27 14:06 ` [Qemu-devel] [PATCH v3 5/9] hw/rdma: Free all MAD receive buffers when device is closed Yuval Shaia
2019-02-27 14:06 ` [Qemu-devel] [PATCH v3 6/9] hw/rdma: Free all receive buffers when QP is destroyed Yuval Shaia
2019-02-27 14:06 ` [Qemu-devel] [PATCH v3 7/9] hw/pvrdma: Delete unneeded function argument Yuval Shaia
2019-02-27 14:06 ` [Qemu-devel] [PATCH v3 8/9] hw/pvrdma: Delete pvrdma_exit function Yuval Shaia
2019-02-27 14:06 ` Yuval Shaia [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190227140629.1569-10-yuval.shaia@oracle.com \
--to=yuval.shaia@oracle.com \
--cc=armbru@redhat.com \
--cc=dgilbert@redhat.com \
--cc=marcel.apfelbaum@gmail.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).