xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [Xen-devel] [PATCH] xen: cleanup IOREQ server on exit
@ 2019-07-29 19:29 Igor Druzhinin
  2019-07-30  8:34 ` Paul Durrant
  0 siblings, 1 reply; 2+ messages in thread
From: Igor Druzhinin @ 2019-07-29 19:29 UTC (permalink / raw)
  To: xen-devel, qemu-devel
  Cc: anthony.perard, Igor Druzhinin, sstabellini, paul.durrant, mst

Device model is supposed to destroy IOREQ server for itself.

Signed-off-by: Igor Druzhinin <igor.druzhinin@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 e8e79e0..30a5948 100644
--- a/hw/i386/xen/xen-hvm.c
+++ b/hw/i386/xen/xen-hvm.c
@@ -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);
 }
-- 
2.7.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Xen-devel] [PATCH] xen: cleanup IOREQ server on exit
  2019-07-29 19:29 [Xen-devel] [PATCH] xen: cleanup IOREQ server on exit Igor Druzhinin
@ 2019-07-30  8:34 ` Paul Durrant
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Durrant @ 2019-07-30  8:34 UTC (permalink / raw)
  To: Igor Druzhinin, xen-devel, qemu-devel
  Cc: Anthony Perard, Igor Druzhinin, sstabellini, mst

> -----Original Message-----
> From: Igor Druzhinin <igor.druzhinin@citrix.com>
> Sent: 29 July 2019 20:29
> To: xen-devel@lists.xenproject.org; qemu-devel@nongnu.org
> Cc: sstabellini@kernel.org; Anthony Perard <anthony.perard@citrix.com>; Paul Durrant
> <Paul.Durrant@citrix.com>; mst@redhat.com; Igor Druzhinin <igor.druzhinin@citrix.com>
> Subject: [PATCH] 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>

> ---
>  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 e8e79e0..30a5948 100644
> --- a/hw/i386/xen/xen-hvm.c
> +++ b/hw/i386/xen/xen-hvm.c
> @@ -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);
>  }
> --
> 2.7.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-07-30  8:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-29 19:29 [Xen-devel] [PATCH] xen: cleanup IOREQ server on exit Igor Druzhinin
2019-07-30  8:34 ` Paul Durrant

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).