aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Druzhinin <igor.druzhinin@citrix.com>2019-07-29 20:29:23 +0100
committerAnthony PERARD <anthony.perard@citrix.com>2019-08-27 14:18:28 +0100
commitba7fdd64b6714af7e42dfbe5969caf62c0823f75 (patch)
treee07acd2a4213ee3821a48f1c19d202402f20312a
parentd297e533a5f653336dbc1c5a24ea196391dff9f5 (diff)
downloadqemu-ba7fdd64b6714af7e42dfbe5969caf62c0823f75.zip
qemu-ba7fdd64b6714af7e42dfbe5969caf62c0823f75.tar.gz
qemu-ba7fdd64b6714af7e42dfbe5969caf62c0823f75.tar.bz2
xen: cleanup IOREQ server on exit
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>
-rw-r--r--hw/i386/xen/xen-hvm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/i386/xen/xen-hvm.c b/hw/i386/xen/xen-hvm.c
index 5d3e475..6b5e5bb 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);
}