Skip to contentSkip to conversation

xen: cleanup IOREQ server on exit

PATCH In review Igor Druzhinin 2 participants 2 messages Jul 29, 2019 – Jul 30, 2019

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen: cleanup IOREQ server on exit

Device model is supposed to destroy IOREQ server for itself.

---
 hw/i386/xen/xen-hvm.c | 2 ++
 1 file changed, 2 insertions(+)
hw/i386/xen/xen-hvm.c +2 -0
index e8e79e0..30a5948 100644
@@ -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);
 }
Signature · 7 lines
2.7.4


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel
Acked-by on v1 1/1
#1 lore raw
Quoted 11 lines

-----Original Message-----
From: Igor Druzhinin <[email protected]>
Sent: 29 July 2019 20:29
To: [email protected]; [email protected]
Cc: [email protected]; Anthony Perard <[email protected]>; Paul Durrant <[email protected]>; [email protected]; Igor Druzhinin <[email protected]>
Subject: [PATCH] xen: cleanup IOREQ server on exit

Device model is supposed to destroy IOREQ server for itself.

Quoted 18 lines
---
 hw/i386/xen/xen-hvm.c | 2 ++
 1 file changed, 2 insertions(+)
hw/i386/xen/xen-hvm.c +2 -1
index e8e79e0..30a5948 100644
@@ -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);
 }
--
Quoted 1 line

2.7.4

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xenproject.org/mailman/listinfo/xen-devel