]> xenbits.xensource.com Git - qemu-xen.git/commitdiff
xen: cleanup IOREQ server on exit
authorIgor Druzhinin <igor.druzhinin@citrix.com>
Mon, 29 Jul 2019 19:29:23 +0000 (20:29 +0100)
committerAnthony PERARD <anthony.perard@citrix.com>
Tue, 27 Aug 2019 16:25:32 +0000 (17:25 +0100)
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>
(cherry picked from commit ba7fdd64b6714af7e42dfbe5969caf62c0823f75)

hw/i386/xen/xen-hvm.c

index e8e79e09172fc1802c7c8fa993fa840dcf7f5484..30a59482fe8e47618752a34f9de0843405d41619 100644 (file)
@@ -1242,6 +1242,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);
 }