qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Anthony PERARD <anthony.perard@citrix.com>
To: <qemu-devel@nongnu.org>
Cc: Anthony PERARD <anthony.perard@citrix.com>,
	xen-devel@lists.xenproject.org,
	Peter Maydell <peter.maydell@linaro.org>
Subject: [Qemu-devel] [PULL 2/4] xen: cleanup IOREQ server on exit
Date: Tue, 27 Aug 2019 14:32:57 +0100	[thread overview]
Message-ID: <20190827133259.32084-3-anthony.perard@citrix.com> (raw)
In-Reply-To: <20190827133259.32084-1-anthony.perard@citrix.com>

From: Igor Druzhinin <igor.druzhinin@citrix.com>

Device model is supposed to destroy IOREQ server for itself.

Signed-off-by: Igor Druzhinin <igor.druzhinin@citrix.com>
Acked-by: Paul Durrant <paul.durrant@citrix.com>
Message-Id: <1564428563-1006-1-git-send-email-igor.druzhinin@citrix.com>
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
---
 hw/i386/xen/xen-hvm.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hw/i386/xen/xen-hvm.c b/hw/i386/xen/xen-hvm.c
index 5d3e4750e6..6b5e5bb7f5 100644
--- a/hw/i386/xen/xen-hvm.c
+++ b/hw/i386/xen/xen-hvm.c
@@ -1247,6 +1247,8 @@ static void xen_exit_notifier(Notifier *n, void *data)
 {
     XenIOState *state = container_of(n, XenIOState, exit);
 
+    xen_destroy_ioreq_server(xen_domid, state->ioservid);
+
     xenevtchn_close(state->xce_handle);
     xs_daemon_close(state->xenstore);
 }
-- 
Anthony PERARD



  parent reply	other threads:[~2019-08-27 13:34 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-08-27 13:32 [Qemu-devel] [PULL 0/4] xen queue 2019-08-27 Anthony PERARD
2019-08-27 13:32 ` [Qemu-devel] [PULL 1/4] xen: Fix ring.h header Anthony PERARD
2019-08-27 13:32 ` Anthony PERARD [this message]
2019-08-27 13:32 ` [Qemu-devel] [PULL 3/4] xen-bus: Fix backend state transition on device reset Anthony PERARD
2019-08-27 13:32 ` [Qemu-devel] [PULL 4/4] xen-bus: Avoid rewriting identical values to xenstore Anthony PERARD
2019-08-27 16:14 ` [Qemu-devel] [PULL 0/4] xen queue 2019-08-27 Peter Maydell

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=20190827133259.32084-3-anthony.perard@citrix.com \
    --to=anthony.perard@citrix.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=xen-devel@lists.xenproject.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).